From: Michael Stapelberg Date: Mon, 29 Jun 2009 20:23:24 +0000 (+0200) Subject: Bugfix: That last push was one step too fast. Forgot to check parameter. X-Git-Tag: 3.c~60 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0434b6ea3d26c6908fed953eaa34ddf651a08d6d;p=i3%2Fi3 Bugfix: That last push was one step too fast. Forgot to check parameter. --- diff --git a/src/manage.c b/src/manage.c index 2cc0adae..c1a79e7f 100644 --- a/src/manage.c +++ b/src/manage.c @@ -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; }