]> git.sur5r.net Git - i3/i3/blobdiff - src/restore_layout.c
Restore placeholder windows after restarting (Thanks Airblader).
[i3/i3] / src / restore_layout.c
index 0f6e54f9cc18e68d01d832680ab201e4b503838d..c6a87f06e8aabc0c0a5e8d68bb60e200e3fbba92 100644 (file)
@@ -180,7 +180,9 @@ static void update_placeholder_contents(placeholder_state *state) {
 
 static void open_placeholder_window(Con *con) {
     if (con_is_leaf(con) &&
-        (con->window == NULL || con->window->id == XCB_NONE)) {
+        (con->window == NULL || con->window->id == XCB_NONE) &&
+        !TAILQ_EMPTY(&(con->swallow_head)) &&
+        con->type == CT_CON) {
         xcb_window_t placeholder = create_window(
             restore_conn,
             con->rect,