]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Make assignments work again (Thanks badboy)
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 26 Jul 2009 00:12:45 +0000 (02:12 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 26 Jul 2009 00:12:45 +0000 (02:12 +0200)
src/manage.c

index 83c27f9947a13b8863ff69ece7d04c2954408116..5d2468334dcf32de9476ee6f7c167422eda0ff72 100644 (file)
@@ -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) {