From 6054354a08c1203d8e710a71f8a6a8b689911509 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Thu, 30 Dec 2021 21:40:08 +0000 Subject: dwm.c: Avoid fullscreen z-fighting with multiple clients --- dwm.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dwm.c b/dwm.c index 164a4ba..2692deb 100644 --- a/dwm.c +++ b/dwm.c @@ -1654,6 +1654,11 @@ spawn(const Arg *arg) if (arg->v == dmenucmd) dmenumon[0] = '0' + selmon->num; + + /* always unset fullscreen when spawning a new window */ + else if(selmon->sel != NULL && selmon->sel->isfullscreen) + setfullscreen(selmon->sel, 0); + if (fork() == 0) { if (dpy) close(ConnectionNumber(dpy)); -- cgit v1.2.3