Unmanage clients on UnmapNotifies
ICCCM mandates that window managers have to trigger the conversion to withdrawn state on the synthetic and the real unmap notify, no matter if any is missing. Previously we couldn't do this, but thanks to the reparenting, we can now do this properly. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
9fbdecf26c
commit
eb89467896
8
event.c
8
event.c
|
@ -629,12 +629,8 @@ event_handle_unmapnotify(xcb_unmap_notify_event_t *ev)
|
||||||
|
|
||||||
if((c = client_getbywin(ev->window)))
|
if((c = client_getbywin(ev->window)))
|
||||||
{
|
{
|
||||||
if(ev->event == xutil_screen_get(globalconf.connection, c->phys_screen)->root
|
client_unmanage(c);
|
||||||
&& XCB_EVENT_SENT(ev))
|
xcb_unmap_window(globalconf.connection, ev->window);
|
||||||
{
|
|
||||||
client_unmanage(c);
|
|
||||||
xcb_unmap_window(globalconf.connection, ev->window);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
for(int i = 0; i < globalconf.embedded.len; i++)
|
for(int i = 0; i < globalconf.embedded.len; i++)
|
||||||
|
|
Loading…
Reference in New Issue