From c83505cf5d01d2f4e53f9c241520f26edc718b12 Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Thu, 22 Aug 2024 14:33:13 +0400 Subject: automatically exits fullscreen right when another window is spawned --- dwm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dwm.c b/dwm.c index c67584b..ecf7c1b 100644 --- a/dwm.c +++ b/dwm.c @@ -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; -- cgit v1.2.3