diff options
| author | Anselm R. Garbe <arg@suckless.org> | 2007-05-29 11:35:20 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <arg@suckless.org> | 2007-05-29 11:35:20 +0200 |
| commit | 199a6016114875656102d11e79a80939bfaff3b3 (patch) | |
| tree | 2ad54798ecf25479959e50e611eb2163247745ec /event.c | |
| parent | applied Sanders patch (diff) | |
| download | dwm-199a6016114875656102d11e79a80939bfaff3b3.tar.gz dwm-199a6016114875656102d11e79a80939bfaff3b3.zip | |
applied anydot's 3 minor patches, thank you anydot
Diffstat (limited to 'event.c')
| -rw-r--r-- | event.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -242,11 +242,11 @@ enternotify(XEvent *e) { | |||
| 242 | 242 | ||
| 243 | if(ev->mode != NotifyNormal || ev->detail == NotifyInferior) | 243 | if(ev->mode != NotifyNormal || ev->detail == NotifyInferior) |
| 244 | return; | 244 | return; |
| 245 | if((c = getclient(ev->window)) && isvisible(c)) | 245 | if(c = getclient(ev->window)) |
| 246 | focus(c); | 246 | focus(c); |
| 247 | else if(ev->window == root) { | 247 | else if(ev->window == root) { |
| 248 | selscreen = True; | 248 | selscreen = True; |
| 249 | focustopvisible(); | 249 | focus(NULL); |
| 250 | } | 250 | } |
| 251 | } | 251 | } |
| 252 | 252 | ||
