diff options
author | frei-0xff <frei.0xff@gmail.com> | 2022-01-21 03:56:32 +0200 |
---|---|---|
committer | frei-0xff <frei.0xff@gmail.com> | 2022-01-21 03:56:32 +0200 |
commit | b8d91c9cb354aab8ebf80283514c4c6c10764d2e (patch) | |
tree | e01315dc90f456aafa6d2e4d88883b3f7e658c70 /dwm.c | |
parent | 20c5780d14274637bc1e08521fa050c37cedf0df (diff) |
Unset fullscreen on current window when new window is opened
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |