diff options
Diffstat (limited to '')
| -rw-r--r-- | dwm.c | 6 |
1 files changed, 1 insertions, 5 deletions
| @@ -790,7 +790,6 @@ drawtext(const char *text, unsigned long col[ColLast], Bool invert) { | |||
| 790 | 790 | ||
| 791 | void | 791 | void |
| 792 | enternotify(XEvent *e) { | 792 | enternotify(XEvent *e) { |
| 793 | Client *c; | ||
| 794 | Monitor *m; | 793 | Monitor *m; |
| 795 | XCrossingEvent *ev = &e->xcrossing; | 794 | XCrossingEvent *ev = &e->xcrossing; |
| 796 | 795 | ||
| @@ -800,10 +799,7 @@ enternotify(XEvent *e) { | |||
| 800 | unfocus(selmon->sel, True); | 799 | unfocus(selmon->sel, True); |
| 801 | selmon = m; | 800 | selmon = m; |
| 802 | } | 801 | } |
| 803 | if((c = wintoclient(ev->window))) | 802 | focus(wintoclient(ev->window)); |
| 804 | focus(c); | ||
| 805 | else | ||
| 806 | focus(NULL); | ||
| 807 | } | 803 | } |
| 808 | 804 | ||
| 809 | void | 805 | void |
