diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2021-12-30 21:40:08 +0000 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2023-06-05 18:16:06 +0200 |
commit | 6054354a08c1203d8e710a71f8a6a8b689911509 (patch) | |
tree | 5f6f83ef46d5c7f26f260d0163a20152036b3f9b /dwm.c | |
parent | ff68fe5d70e50cb0b091fe23a213ef0315016d34 (diff) | |
download | dwm-6054354a08c1203d8e710a71f8a6a8b689911509.tar.gz |
dwm.c: Avoid fullscreen z-fighting with multiple clients
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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)); |