diff options
Diffstat (limited to '')
| -rw-r--r-- | client.c | 2 | ||||
| -rw-r--r-- | event.c | 2 |
2 files changed, 2 insertions, 2 deletions
| @@ -131,7 +131,7 @@ detach(Client *c) { | |||
| 131 | 131 | ||
| 132 | void | 132 | void |
| 133 | focus(Client *c) { | 133 | focus(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); |
| @@ -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; |
