mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
swallow: set the _IS_FLOATING property for the floating window if EWMH patch is enabled
This commit is contained in:
parent
21fd715afa
commit
1266f49707
@ -38,6 +38,9 @@ swallow(Client *p, Client *c)
|
||||
|
||||
updatetitle(p);
|
||||
s = scanner ? c : p;
|
||||
#if BAR_EWMHTAGS_PATCH
|
||||
setfloatinghint(s);
|
||||
#endif // BAR_EWMHTAGS_PATCH
|
||||
XMoveResizeWindow(dpy, p->win, s->x, s->y, s->w, s->h);
|
||||
arrange(p->mon);
|
||||
configure(p);
|
||||
@ -62,6 +65,9 @@ unswallow(Client *c)
|
||||
arrange(c->mon);
|
||||
XMapWindow(dpy, c->win);
|
||||
XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h);
|
||||
#if BAR_EWMHTAGS_PATCH
|
||||
setfloatinghint(c);
|
||||
#endif // BAR_EWMHTAGS_PATCH
|
||||
setclientstate(c, NormalState);
|
||||
focus(NULL);
|
||||
arrange(c->mon);
|
||||
|
Loading…
Reference in New Issue
Block a user