瀏覽代碼

applied Hiltjo Posthuma's line saver patch

anselm@garbe.us 15 年之前
父節點
當前提交
1529058f27
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      dwm.c

+ 1 - 5
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