diff options
| author | arg@10ksloc.org <unknown> | 2006-08-04 18:17:02 +0200 |
|---|---|---|
| committer | arg@10ksloc.org <unknown> | 2006-08-04 18:17:02 +0200 |
| commit | 3d73084b5ef25bca354b32e049b2904aa9519c09 (patch) | |
| tree | e052d494cf2f7e1c32287d5582a22285c5518db4 | |
| parent | no need for -g anymore, regexp matching works now (diff) | |
| download | dwm-3d73084b5ef25bca354b32e049b2904aa9519c09.tar.gz dwm-3d73084b5ef25bca354b32e049b2904aa9519c09.zip | |
fixed view-change bug reported on the list
| -rw-r--r-- | tag.c | 24 |
1 files changed, 10 insertions, 14 deletions
| @@ -57,14 +57,12 @@ dofloat(Arg *arg) | |||
| 57 | else | 57 | else |
| 58 | ban(c); | 58 | ban(c); |
| 59 | } | 59 | } |
| 60 | if(sel && !sel->tags[tsel]) { | 60 | if((sel = getnext(clients))) { |
| 61 | if((sel = getnext(clients))) { | 61 | higher(sel); |
| 62 | higher(sel); | 62 | focus(sel); |
| 63 | focus(sel); | ||
| 64 | } | ||
| 65 | else | ||
| 66 | XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); | ||
| 67 | } | 63 | } |
| 64 | else | ||
| 65 | XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); | ||
| 68 | drawall(); | 66 | drawall(); |
| 69 | } | 67 | } |
| 70 | 68 | ||
| @@ -122,14 +120,12 @@ dotile(Arg *arg) | |||
| 122 | else | 120 | else |
| 123 | ban(c); | 121 | ban(c); |
| 124 | } | 122 | } |
| 125 | if(!sel || (sel && !sel->tags[tsel])) { | 123 | if((sel = getnext(clients))) { |
| 126 | if((sel = getnext(clients))) { | 124 | higher(sel); |
| 127 | higher(sel); | 125 | focus(sel); |
| 128 | focus(sel); | ||
| 129 | } | ||
| 130 | else | ||
| 131 | XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); | ||
| 132 | } | 126 | } |
| 127 | else | ||
| 128 | XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); | ||
| 133 | drawall(); | 129 | drawall(); |
| 134 | } | 130 | } |
| 135 | 131 | ||
