Ignore UnmapNotify if the window wants to enter WithdrawnState
Patch status: rejected
Patch by oblique
Long description:
more info: http://tronche.com/gui/x/icccm/sec-4.html#s-4.1.4 http://comments.gmane.org/gmane.comp.misc.suckless/6853 fixes #787
To apply this patch, use:
curl http://cr.i3wm.org/patch/142/raw.patch | git am
b/src/handlers.c
19 |
@@ -457,6 +457,13 @@ static void handle_unmap_notify_event(xcb_unmap_notify_event_t *event) { |
20 |
goto ignore_end; |
21 |
} |
22 |
|
23 |
+ /* ignore UnmapNotify if the window wants to enter WithdrawnState |
24 |
+ * more info: http://tronche.com/gui/x/icccm/sec-4.html#s-4.1.4 |
25 |
+ * http://comments.gmane.org/gmane.comp.misc.suckless/6853 |
26 |
+ * this fix #787 */ |
27 |
+ if (event->from_configure == 0) |
28 |
+ goto ignore_end; |
29 |
+ |
30 |
/* See the end of this function. */ |
31 |
cookie = xcb_get_input_focus(conn); |
32 |
|