diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2021-12-30 21:40:08 +0000 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2024-10-09 20:09:49 +0200 |
commit | bb4a3e02e799e1c18e11a440a771c15626982361 (patch) | |
tree | 7c074c066175ef6e6d3e25fa6be6be5d3074fa8f | |
parent | 017f8bbe7c5d3242775074d784608e8536cb8b4e (diff) | |
download | dwm-bb4a3e02e799e1c18e11a440a771c15626982361.tar.gz |
dwm.c: Avoid fullscreen z-fighting with multiple clients
-rw-r--r-- | dwm.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1653,6 +1653,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)); |