update icon on swallow/unswallow

This commit is contained in:
speedie 2023-01-24 10:53:31 +01:00
parent 9b057bceda
commit 22086c3839

View file

@ -1359,6 +1359,9 @@ swallow(Client *p, Client *c)
Window w = p->win; Window w = p->win;
p->win = c->win; p->win = c->win;
c->win = w; c->win = w;
#if USEWINICON
updateicon(p);
#endif
updatetitle(p); updatetitle(p);
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); arrange(p->mon);
@ -1376,6 +1379,9 @@ unswallow(Client *c)
/* unfullscreen the client */ /* unfullscreen the client */
setfullscreen(c, 0); setfullscreen(c, 0);
#if USEWINICON
updateicon(c);
#endif
updatetitle(c); updatetitle(c);
arrange(c->mon); arrange(c->mon);
XMapWindow(dpy, c->win); XMapWindow(dpy, c->win);