summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-05-30 08:57:44 +0200
committerAnselm R. Garbe <arg@suckless.org>2007-05-30 08:57:44 +0200
commit39ae286861b7e23f6de0ee290e48bda695c1e881 (patch)
tree5df7791089c0e6cddc0250e7bcd22c0c133144b8
parentchanged -v output (now also anydot and nsz are contained in this output) (diff)
downloaddwm-39ae286861b7e23f6de0ee290e48bda695c1e881.tar.gz
dwm-39ae286861b7e23f6de0ee290e48bda695c1e881.zip
applied Jukkas patch
Diffstat (limited to '')
-rw-r--r--client.c2
-rw-r--r--event.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/client.c b/client.c
index c4b0941..2872e1e 100644
--- a/client.c
+++ b/client.c
@@ -131,7 +131,7 @@ detach(Client *c) {
131 131
132void 132void
133focus(Client *c) { 133focus(Client *c) {
134 if( !c && selscreen || c && !isvisible(c)) 134 if((!c && selscreen)|| (c && !isvisible(c)))
135 for(c = stack; c && !isvisible(c); c = c->snext); 135 for(c = stack; c && !isvisible(c); c = c->snext);
136 if(sel && sel != c) { 136 if(sel && sel != c) {
137 grabbuttons(sel, False); 137 grabbuttons(sel, False);
diff --git a/event.c b/event.c
index 6b15950..8eaff1a 100644
--- a/event.c
+++ b/event.c
@@ -244,7 +244,7 @@ enternotify(XEvent *e) {
244 244
245 if(ev->mode != NotifyNormal || ev->detail == NotifyInferior) 245 if(ev->mode != NotifyNormal || ev->detail == NotifyInferior)
246 return; 246 return;
247 if(c = getclient(ev->window)) 247 if((c = getclient(ev->window)))
248 focus(c); 248 focus(c);
249 else if(ev->window == root) { 249 else if(ev->window == root) {
250 selscreen = True; 250 selscreen = True;