diff options
Diffstat (limited to '')
| -rw-r--r-- | event.c | 8 |
1 files changed, 3 insertions, 5 deletions
| @@ -235,7 +235,6 @@ enternotify(XEvent *e) { | |||
| 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 | XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); |
| 238 | drawall(); | ||
| 239 | } | 238 | } |
| 240 | } | 239 | } |
| 241 | 240 | ||
| @@ -272,10 +271,8 @@ static void | |||
| 272 | leavenotify(XEvent *e) { | 271 | leavenotify(XEvent *e) { |
| 273 | XCrossingEvent *ev = &e->xcrossing; | 272 | XCrossingEvent *ev = &e->xcrossing; |
| 274 | 273 | ||
| 275 | if((ev->window == root) && !ev->same_screen) { | 274 | if((ev->window == root) && !ev->same_screen) |
| 276 | issel = False; | 275 | issel = False; |
| 277 | drawall(); | ||
| 278 | } | ||
| 279 | } | 276 | } |
| 280 | 277 | ||
| 281 | static void | 278 | static void |
| @@ -329,7 +326,8 @@ propertynotify(XEvent *e) { | |||
| 329 | } | 326 | } |
| 330 | if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) { | 327 | if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) { |
| 331 | updatetitle(c); | 328 | updatetitle(c); |
| 332 | drawclient(c); | 329 | if(c == sel) |
| 330 | drawstatus(); | ||
| 333 | } | 331 | } |
| 334 | } | 332 | } |
| 335 | } | 333 | } |
