diff options
| author | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-14 18:46:07 +0200 |
|---|---|---|
| committer | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-14 18:46:07 +0200 |
| commit | dfa5ea63600d8c68bbe05fbc80191bd3198510b2 (patch) | |
| tree | 9c33add636c30afcd45b6e1f5b4a6fc711ba51cd /tag.c | |
| parent | applied sanders man page patch, removed button2 from bar click (diff) | |
| download | dwm-dfa5ea63600d8c68bbe05fbc80191bd3198510b2.tar.gz dwm-dfa5ea63600d8c68bbe05fbc80191bd3198510b2.zip | |
applied viewsel.patch
Diffstat (limited to '')
| -rw-r--r-- | tag.c | 8 |
1 files changed, 6 insertions, 2 deletions
| @@ -47,7 +47,9 @@ dofloat(Arg *arg) | |||
| 47 | else | 47 | else |
| 48 | ban(c); | 48 | ban(c); |
| 49 | } | 49 | } |
| 50 | if((sel = getnext(clients))) { | 50 | if(!sel || !isvisible(sel)) |
| 51 | sel = getnext(clients); | ||
| 52 | if(sel) { | ||
| 51 | focus(sel); | 53 | focus(sel); |
| 52 | restack(); | 54 | restack(); |
| 53 | } | 55 | } |
| @@ -111,7 +113,9 @@ dotile(Arg *arg) | |||
| 111 | else | 113 | else |
| 112 | ban(c); | 114 | ban(c); |
| 113 | } | 115 | } |
| 114 | if((sel = getnext(clients))) | 116 | if(!sel || !isvisible(sel)) |
| 117 | sel = getnext(clients); | ||
| 118 | if(sel) | ||
| 115 | focus(sel); | 119 | focus(sel); |
| 116 | else | 120 | else |
| 117 | XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); | 121 | XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); |
