From 1529058f27821d50d7a1ea085b6362b6b353b399 Mon Sep 17 00:00:00 2001 From: "anselm@garbe.us" Date: Mon, 23 Aug 2010 17:25:53 +0100 Subject: applied Hiltjo Posthuma's line saver patch --- dwm.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'dwm.c') diff --git a/dwm.c b/dwm.c index 438b9e71..4b43a18a 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 -- cgit v1.2.3