From: Michael Stapelberg Date: Sun, 26 Jul 2009 00:12:45 +0000 (+0200) Subject: Bugfix: Make assignments work again (Thanks badboy) X-Git-Tag: 3.c~47 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=76664df3df5e553281cfdd6f0fe5c7b3a0f5a6a0;p=i3%2Fi3 Bugfix: Make assignments work again (Thanks badboy) --- diff --git a/src/manage.c b/src/manage.c index 83c27f99..5d246833 100644 --- a/src/manage.c +++ b/src/manage.c @@ -134,6 +134,7 @@ void reparent_window(xcb_connection_t *conn, xcb_window_t child, uint32_t mask = 0; uint32_t values[3]; uint16_t original_height = height; + bool map_frame = true; /* We are interested in property changes */ mask = XCB_CW_EVENT_MASK; @@ -337,7 +338,7 @@ void reparent_window(xcb_connection_t *conn, xcb_window_t child, new->workspace = t_ws; old_focused = new->container->currently_focused; - xcb_unmap_window(conn, new->frame); + map_frame = false; break; } } @@ -411,8 +412,9 @@ void reparent_window(xcb_connection_t *conn, xcb_window_t child, render_layout(conn); /* Map the window first to avoid flickering */ - xcb_map_window(conn, new->frame); xcb_map_window(conn, child); + if (map_frame) + xcb_map_window(conn, new->frame); if (CUR_CELL->workspace->fullscreen_client == NULL && !new->dock) { /* Focus the new window if we’re not in fullscreen mode and if it is not a dock window */ if (new->workspace->fullscreen_client == NULL) {