From b8d91c9cb354aab8ebf80283514c4c6c10764d2e Mon Sep 17 00:00:00 2001 From: frei-0xff Date: Fri, 21 Jan 2022 03:56:32 +0200 Subject: [PATCH] Unset fullscreen on current window when new window is opened --- dwm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dwm.c b/dwm.c index d752216..c0d141d 100644 --- a/dwm.c +++ b/dwm.c @@ -1248,6 +1248,8 @@ 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;