Merge pull request #57 from aajonusonline/master
swallow patch: unfullscreen client and reset focus
This commit is contained in:
commit
39e3fbaaba
1 changed files with 5 additions and 2 deletions
7
dwm.c
7
dwm.c
|
@ -501,8 +501,8 @@ swallow(Client *p, Client *c)
|
||||||
p->win = c->win;
|
p->win = c->win;
|
||||||
c->win = w;
|
c->win = w;
|
||||||
updatetitle(p);
|
updatetitle(p);
|
||||||
arrange(p->mon);
|
|
||||||
XMoveResizeWindow(dpy, p->win, p->x, p->y, p->w, p->h);
|
XMoveResizeWindow(dpy, p->win, p->x, p->y, p->w, p->h);
|
||||||
|
arrange(p->mon);
|
||||||
configure(p);
|
configure(p);
|
||||||
updateclientlist();
|
updateclientlist();
|
||||||
}
|
}
|
||||||
|
@ -515,12 +515,15 @@ unswallow(Client *c)
|
||||||
free(c->swallowing);
|
free(c->swallowing);
|
||||||
c->swallowing = NULL;
|
c->swallowing = NULL;
|
||||||
|
|
||||||
|
/* unfullscreen the client */
|
||||||
|
setfullscreen(c, 0);
|
||||||
updatetitle(c);
|
updatetitle(c);
|
||||||
arrange(c->mon);
|
arrange(c->mon);
|
||||||
XMapWindow(dpy, c->win);
|
XMapWindow(dpy, c->win);
|
||||||
XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h);
|
XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h);
|
||||||
configure(c);
|
|
||||||
setclientstate(c, NormalState);
|
setclientstate(c, NormalState);
|
||||||
|
focus(NULL);
|
||||||
|
arrange(c->mon);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue