diff options
author | Suleyman Farajli <suleyman@farajli.net> | 2024-08-18 20:31:27 +0400 |
---|---|---|
committer | Suleyman Farajli <suleyman@farajli.net> | 2025-05-27 23:51:38 +0400 |
commit | 219ffa6873831fdd993707d6e60bcc183c7e616b (patch) | |
tree | 73c45c2c36f12742a2562180d834d011b0aab0ec | |
parent | 99cefb5592e84f25c92e228450b3fc84c00f9228 (diff) |
automatically exits fullscreen when another window is spawned
-rw-r--r-- | dwm.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1707,6 +1707,10 @@ spawn(const Arg *arg) if (arg->v == dmenucmd) dmenumon[0] = '0' + selmon->num; selmon->tagset[selmon->seltags] &= ~scratchtag; + + if(selmon->sel && selmon->sel->isfullscreen) + togglefullscr(NULL); + if (fork() == 0) { if (dpy) close(ConnectionNumber(dpy)); |