Unset fullscreen on current window when new window is opened
This commit is contained in:
parent
20c5780d14
commit
b8d91c9cb3
1 changed files with 2 additions and 0 deletions
2
dwm.c
2
dwm.c
|
@ -1248,6 +1248,8 @@ manage(Window w, XWindowAttributes *wa)
|
||||||
(unsigned char *) &(c->win), 1);
|
(unsigned char *) &(c->win), 1);
|
||||||
XMoveResizeWindow(dpy, c->win, c->x + 2 * sw, c->y, c->w, c->h); /* some windows require this */
|
XMoveResizeWindow(dpy, c->win, c->x + 2 * sw, c->y, c->w, c->h); /* some windows require this */
|
||||||
setclientstate(c, NormalState);
|
setclientstate(c, NormalState);
|
||||||
|
if(selmon->sel && selmon->sel->isfullscreen && !c->isfloating)
|
||||||
|
setfullscreen(selmon->sel, 0);
|
||||||
if (c->mon == selmon)
|
if (c->mon == selmon)
|
||||||
unfocus(selmon->sel, 0);
|
unfocus(selmon->sel, 0);
|
||||||
c->mon->sel = c;
|
c->mon->sel = c;
|
||||||
|
|
Loading…
Reference in a new issue