diff options
| author | Anselm R. Garbe <arg@suckless.org> | 2007-01-19 15:05:07 +0100 |
|---|---|---|
| committer | Anselm R. Garbe <arg@suckless.org> | 2007-01-19 15:05:07 +0100 |
| commit | 201c56f6d36e7f895c465f534fdb90e3d9e4ca18 (patch) | |
| tree | 25c63748256f145a149800a9d6546d5fd07d71e4 /event.c | |
| parent | deciding for focus(NULL); (diff) | |
| download | dwm-201c56f6d36e7f895c465f534fdb90e3d9e4ca18.tar.gz dwm-201c56f6d36e7f895c465f534fdb90e3d9e4ca18.zip | |
leavenotify also don't needs the check
Diffstat (limited to '')
| -rw-r--r-- | event.c | 7 |
1 files changed, 2 insertions, 5 deletions
| @@ -234,9 +234,7 @@ enternotify(XEvent *e) { | |||
| 234 | focus(c); | 234 | focus(c); |
| 235 | else if(ev->window == root) { | 235 | else if(ev->window == root) { |
| 236 | issel = True; | 236 | issel = True; |
| 237 | XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); | 237 | focus(sel); |
| 238 | if(sel) | ||
| 239 | focus(sel); | ||
| 240 | } | 238 | } |
| 241 | } | 239 | } |
| 242 | 240 | ||
| @@ -273,8 +271,7 @@ leavenotify(XEvent *e) { | |||
| 273 | XCrossingEvent *ev = &e->xcrossing; | 271 | XCrossingEvent *ev = &e->xcrossing; |
| 274 | 272 | ||
| 275 | if((ev->window == root) && !ev->same_screen) { | 273 | if((ev->window == root) && !ev->same_screen) { |
| 276 | if(sel) | 274 | focus(NULL); |
| 277 | focus(NULL); | ||
| 278 | issel = False; | 275 | issel = False; |
| 279 | } | 276 | } |
| 280 | } | 277 | } |
