]> git.sur5r.net Git - i3/i3/blobdiff - src/handlers.c
Remove _NET_WM_STATE on withdrawn windows.
[i3/i3] / src / handlers.c
index 7e116ce70fc64f8c28f18797bc71ce5cf38ae7d1..2991d7c39844c1961bde2c4cb1274ccf1db8ee06 100644 (file)
@@ -503,8 +503,10 @@ static void handle_unmap_notify_event(xcb_unmap_notify_event_t *event) {
         goto ignore_end;
     }
 
-    /* Since we close the container, we need to unset _NET_WM_DESKTOP according to the spec. */
+    /* Since we close the container, we need to unset _NET_WM_DESKTOP and
+     * _NET_WM_STATE according to the spec. */
     xcb_delete_property(conn, event->window, A__NET_WM_DESKTOP);
+    xcb_delete_property(conn, event->window, A__NET_WM_STATE);
 
     tree_close_internal(con, DONT_KILL_WINDOW, false, false);
     tree_render();