swallow: set the _IS_FLOATING property for the floating window if EWMH patch is enabled

This commit is contained in:
bakkeby 2020-10-11 11:53:43 +02:00
parent 21fd715afa
commit 1266f49707

View File

@ -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);