applied Hiltjo Posthuma's line saver patch
authoranselm@garbe.us
Mon, 23 Aug 2010 17:25:53 +0100
changeset 1523 26f81e0f1eb3
parent 1522 0d86faf4b05c
child 1524 050d521d66d8
applied Hiltjo Posthuma's line saver patch
dwm.c
--- a/dwm.c	Sun Jul 25 09:58:25 2010 +0100
+++ b/dwm.c	Mon Aug 23 17:25:53 2010 +0100
@@ -790,7 +790,6 @@
 
 void
 enternotify(XEvent *e) {
-	Client *c;
 	Monitor *m;
 	XCrossingEvent *ev = &e->xcrossing;
 
@@ -800,10 +799,7 @@
 		unfocus(selmon->sel, True);
 		selmon = m;
 	}
-	if((c = wintoclient(ev->window)))
-		focus(c);
-	else
-		focus(NULL);
+	focus(wintoclient(ev->window));
 }
 
 void