From: Michael Stapelberg Date: Mon, 7 Sep 2009 19:18:44 +0000 (+0200) Subject: Bugfix: Correctly handle unmap-notify events when resizing (Thanks Mirko) X-Git-Tag: 3.d-bf1~41 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a4d3dbef19dae9f8f89e9582d5f48b68c96bc391;p=i3%2Fi3 Bugfix: Correctly handle unmap-notify events when resizing (Thanks Mirko) --- diff --git a/src/floating.c b/src/floating.c index 04d99f6c..50f07d27 100644 --- a/src/floating.c +++ b/src/floating.c @@ -315,8 +315,13 @@ void drag_pointer(xcb_connection_t *conn, Client *client, xcb_button_press_event /* motion_notify events are saved for later */ FREE(last_motion_notify); last_motion_notify = inside_event; - break; + + case XCB_UNMAP_NOTIFY: + LOG("Unmap-notify, aborting\n"); + xcb_event_handle(&evenths, inside_event); + goto done; + default: LOG("Passing to original handler\n"); /* Use original handler */