diff options
author | Suleyman Farajli <suleyman@farajli.net> | 2024-08-22 14:33:13 +0400 |
---|---|---|
committer | Suleyman Farajli <suleyman@farajli.net> | 2025-05-27 23:51:38 +0400 |
commit | c83505cf5d01d2f4e53f9c241520f26edc718b12 (patch) | |
tree | 3af96b69a46055146e300d1b1838df62ede35b79 | |
parent | 387ab3131edd2271ef8c8ee7964bec246d4d512b (diff) |
automatically exits fullscreen right when another window is spawned
-rw-r--r-- | dwm.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1108,6 +1108,10 @@ manage(Window w, XWindowAttributes *wa) (unsigned char *) &(c->win), 1); XMoveResizeWindow(dpy, c->win, c->x + 2 * sw, c->y, c->w, c->h); /* some windows require this */ setclientstate(c, NormalState); + + if(selmon->sel && selmon->sel->isfullscreen && !c->isfloating) + setfullscreen(selmon->sel, 0); + if (c->mon == selmon) unfocus(selmon->sel, 0); c->mon->sel = c; |