]> 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:20:56 +0000 (21:20 +0200)
src/floating.c

index 04d99f6c5a08d3f258bdc703a6e8481c7549fa57..50f07d27d685b682e4274eed1d09691d6d60375c 100644 (file)
@@ -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 */