From e4813d009ad0f7635efb7de43ae33be0b6a88749 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 7 Sep 2009 21:18:44 +0200 Subject: [PATCH] Bugfix: Correctly handle unmap-notify events when resizing (Thanks Mirko) --- src/floating.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/floating.c b/src/floating.c index 39414545..5f9eab3c 100644 --- a/src/floating.c +++ b/src/floating.c @@ -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 */ -- 2.39.5