[hackers] [dwm][PATCH] Allow tiled window to be on top of floating ones and the other way around just by chaning the focus

From: UserX <user_x_AT_riseup.net>
Date: Sat, 18 Apr 2020 16:54:59 +0200

From: UserXGnu <user_x_AT_riseup.net>

---
 dwm.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/dwm.c b/dwm.c
index 4465af1..ff20805 100644
--- a/dwm.c
+++ b/dwm.c
_AT_@ -1363,6 +1363,8 @@ restack(Monitor *m)
 			if (!c->isfloating && ISVISIBLE(c)) {
 				XConfigureWindow(dpy, c->win, CWSibling|CWStackMode, &wc);
 				wc.sibling = c->win;
+                if (c == m->sel)
+                    XRaiseWindow(dpy, c->win);
 			}
 	}
 	XSync(dpy, False);
-- 
2.26.0
Received on Sat Apr 18 2020 - 16:54:59 CEST

This archive was generated by hypermail 2.3.0 : Sat Apr 18 2020 - 17:00:36 CEST