swallow: set the _IS_FLOATING property for the floating window if EWMH patch is enabled
This commit is contained in:
		| @@ -38,6 +38,9 @@ swallow(Client *p, Client *c) | |||||||
|  |  | ||||||
| 	updatetitle(p); | 	updatetitle(p); | ||||||
| 	s = scanner ? c : 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); | 	XMoveResizeWindow(dpy, p->win, s->x, s->y, s->w, s->h); | ||||||
| 	arrange(p->mon); | 	arrange(p->mon); | ||||||
| 	configure(p); | 	configure(p); | ||||||
| @@ -62,6 +65,9 @@ unswallow(Client *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); | ||||||
|  | 	#if BAR_EWMHTAGS_PATCH | ||||||
|  | 	setfloatinghint(c); | ||||||
|  | 	#endif // BAR_EWMHTAGS_PATCH | ||||||
| 	setclientstate(c, NormalState); | 	setclientstate(c, NormalState); | ||||||
| 	focus(NULL); | 	focus(NULL); | ||||||
| 	arrange(c->mon); | 	arrange(c->mon); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user