浏览代码

deciding for focus(NULL);

Anselm R. Garbe 19 年之前
父节点
当前提交
1e051d71f5
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      event.c

+ 2 - 2
event.c

@@ -273,9 +273,9 @@ leavenotify(XEvent *e) {
 	XCrossingEvent *ev = &e->xcrossing;
 
 	if((ev->window == root) && !ev->same_screen) {
-		issel = False;
 		if(sel)
-			XSetWindowBorder(dpy, sel->win, dc.norm[ColBorder]);
+			focus(NULL);
+		issel = False;
 	}
 }