X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=dwm.c;h=85762e270cb7fee6ea733643fe80aed6a7482134;hp=438b9e716e99db22ae2219c8bcb92c9310be6b7d;hb=bea4dd24901235691b5f7ab7b2edd4561de5af27;hpb=36311d88afc07b61131a165cdc383020b7201d95 diff --git a/dwm.c b/dwm.c index 438b9e7..85762e2 100644 --- a/dwm.c +++ b/dwm.c @@ -790,7 +790,6 @@ drawtext(const char *text, unsigned long col[ColLast], Bool invert) { void enternotify(XEvent *e) { - Client *c; Monitor *m; XCrossingEvent *ev = &e->xcrossing; @@ -800,10 +799,7 @@ enternotify(XEvent *e) { unfocus(selmon->sel, True); selmon = m; } - if((c = wintoclient(ev->window))) - focus(c); - else - focus(NULL); + focus((wintoclient(ev->window))); } void