Browse Source

fixed an issue in Peter's patch (it is no good idea to restack() all clients on enternotify()

Anselm R. Garbe 18 năm trước cách đây
mục cha
commit
635b64384d
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      dwm.c

+ 2 - 1
dwm.c

@@ -648,7 +648,8 @@ enternotify(XEvent *e) {
 		return;
 	if((c = getclient(ev->window))) {
 		focus(c);
-		restack();
+		if(ISTILE && !c->isfloating)
+			restack();
 	}
 	else if(ev->window == root) {
 		selscreen = True;