]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Correctly handle unmap-notify events when resizing (Thanks Mirko)
authorMichael Stapelberg <michael@stapelberg.de>
Mon, 7 Sep 2009 19:18:44 +0000 (21:18 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 7 Sep 2009 19:18:44 +0000 (21:18 +0200)
src/floating.c

index 394145457111cf7a7d167fcfd3385b57ae9ea5a9..5f9eab3c334cfb22a5352ebe34907405756373f8 100644 (file)
@@ -342,8 +342,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 */