diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2021-12-30 21:40:08 +0000 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2021-12-30 21:40:38 +0000 |
commit | 6a6854f3d058c1c102e58699b7a7454d2591479f (patch) | |
tree | 09ee30a2248ccaadc500f4cef59412ab70711deb /dwm.c | |
parent | aa2f3733177e6aaf8328af83dbe65e7c400194a7 (diff) | |
download | dwm-6a6854f3d058c1c102e58699b7a7454d2591479f.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
@@ -1645,6 +1645,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)); |