summaryrefslogtreecommitdiffstats
path: root/view.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-08-31 08:48:04 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-08-31 08:48:04 +0200
commit4c368bcd24172166aab32948fc63feaa6a1bec93 (patch)
treedddc175fd0f072d6b7ea09a9b91cbcdf8f9f64d6 /view.c
parentsmall fix in config.arg.h (diff)
downloaddwm-4c368bcd24172166aab32948fc63feaa6a1bec93.tar.gz
dwm-4c368bcd24172166aab32948fc63feaa6a1bec93.zip
applied sanders patch to remove unnecessary commit()
Diffstat (limited to '')
-rw-r--r--view.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/view.c b/view.c
index 424ee5a..aa0a23a 100644
--- a/view.c
+++ b/view.c
@@ -67,7 +67,9 @@ dofloat(Arg *arg)
67 else 67 else
68 ban(c); 68 ban(c);
69 } 69 }
70 if((sel = getnext(clients))) 70 if(!sel || !isvisible(sel))
71 sel = getnext(clients);
72 if(sel)
71 focus(sel); 73 focus(sel);
72 else 74 else
73 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); 75 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
@@ -130,7 +132,9 @@ dotile(Arg *arg)
130 else 132 else
131 ban(c); 133 ban(c);
132 } 134 }
133 if((sel = getnext(clients))) 135 if(!sel || !isvisible(sel))
136 sel = getnext(clients);
137 if(sel)
134 focus(sel); 138 focus(sel);
135 else 139 else
136 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); 140 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);