Fix reparentnotify handling

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2010-07-30 22:25:19 +02:00
parent eb89467896
commit 52f4581be3
1 changed files with 1 additions and 3 deletions

View File

@ -743,10 +743,8 @@ static void
event_handle_reparentnotify(xcb_reparent_notify_event_t *ev) event_handle_reparentnotify(xcb_reparent_notify_event_t *ev)
{ {
client_t *c; client_t *c;
#warning ugly, gotta do this properly
return 0;
if((c = client_getbywin(ev->window))) if((c = client_getbywin(ev->window)) && c->frame_window != ev->parent)
client_unmanage(c); client_unmanage(c);
} }