]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: That last push was one step too fast. Forgot to check parameter.
authorMichael Stapelberg <michael@stapelberg.de>
Mon, 29 Jun 2009 20:23:24 +0000 (22:23 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 29 Jun 2009 20:23:24 +0000 (22:23 +0200)
src/manage.c

index 2cc0adae85b5d01f41be2213f7d885a499ecdc54..c1a79e7f662880ec5ee9dd47cb60801432405b76 100644 (file)
@@ -82,7 +82,7 @@ void manage_window(xcb_property_handlers_t *prophs, xcb_connection_t *conn,
                 return;
         }
 
-        if (attr->map_state != XCB_MAP_STATE_VIEWABLE) {
+        if (needs_to_be_mapped && attr->map_state != XCB_MAP_STATE_VIEWABLE) {
                 LOG("Window not mapped, not managing\n");
                 goto out;
         }