un fullscreen windows when new window spawns

This commit is contained in:
Jakub 2024-05-21 00:28:01 -04:00
parent 6b59c9ea96
commit 7a754e4c6d

2
dwm.c
View File

@ -1446,6 +1446,8 @@ manage(Window w, XWindowAttributes *wa)
XMoveResizeWindow(dpy, c->win, c->x + 2 * sw, c->y, c->w, c->h); /* some windows require this */
if (!HIDDEN(c))
setclientstate(c, NormalState);
if (selmon->sel && selmon->sel->isfullscreen)
setfullscreen(selmon->sel, 0);
if (c->mon == selmon)
unfocus(selmon->sel, 0);
c->mon->sel = c;