aboutsummaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-12-31 10:38:31 +0000
committerRomain Gonçalves <me@rgoncalves.se>2023-06-05 18:16:06 +0200
commit545f3eecf0026bcb9aefaef7410fec20e4096c91 (patch)
treeaed55fe47cefca144c22a24c3f6f654a87ccb670 /dwm.c
parent6054354a08c1203d8e710a71f8a6a8b689911509 (diff)
downloaddwm-545f3eecf0026bcb9aefaef7410fec20e4096c91.tar.gz
dwm.c: Avoid fullscreen z-fighting on new terminal only
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dwm.c b/dwm.c
index 2692deb..72a19c2 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1655,8 +1655,8 @@ 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)
+ /* always unset fullscreen when spawning a new terminal */
+ if (arg->v == termcmd && selmon->sel != NULL && selmon->sel->isfullscreen)
setfullscreen(selmon->sel, 0);
if (fork() == 0) {
remember that computers suck.