i3 - improved tiling WM


Ignore UnmapNotify if the window wants to enter WithdrawnState.

Patch status: superseded

Patch by oblique

Long description:

The first bad commit is db651679c568109b19d2c9bb5270f3359d57fd10.

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/150/raw.patch | git am

b/src/handlers.c

21
@@ -457,6 +457,13 @@ static void handle_unmap_notify_event(xcb_unmap_notify_event_t *event) {
22
         goto ignore_end;
23
     }
24
 
25
+    /* ignore UnmapNotify if the window wants to enter WithdrawnState
26
+     * more info: http://tronche.com/gui/x/icccm/sec-4.html#s-4.1.4
27
+     *            http://comments.gmane.org/gmane.comp.misc.suckless/6853
28
+     * this fix #787 */
29
+    if (event->from_configure == false && event_is_ignored(event->sequence, -1))
30
+        goto ignore_end;
31
+
32
     /* See the end of this function. */
33
     cookie = xcb_get_input_focus(conn);
34