Browse Source

fixed view-change bug reported on the list

config
arg@10ksloc.org 18 years ago
parent
commit
3d73084b5e
1 changed files with 10 additions and 14 deletions
  1. +10
    -14
      tag.c

+ 10
- 14
tag.c View File

@ -57,14 +57,12 @@ dofloat(Arg *arg)
else
ban(c);
}
if(sel && !sel->tags[tsel]) {
if((sel = getnext(clients))) {
higher(sel);
focus(sel);
}
else
XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
if((sel = getnext(clients))) {
higher(sel);
focus(sel);
}
else
XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
drawall();
}
@ -122,14 +120,12 @@ dotile(Arg *arg)
else
ban(c);
}
if(!sel || (sel && !sel->tags[tsel])) {
if((sel = getnext(clients))) {
higher(sel);
focus(sel);
}
else
XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
if((sel = getnext(clients))) {
higher(sel);
focus(sel);
}
else
XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
drawall();
}


Loading…
Cancel
Save