DLOG("Focus list empty, returning ws\n");
next = ws;
}
+ } else {
+ /* Instead of returning the next CT_FLOATING_CON, we descend it to
+ * get an actual window to focus. */
+ next = con_descend_focused(next);
}
return next;
}
int children = con_num_children(con);
if (children == 0) {
DLOG("Container empty, closing\n");
- tree_close(con, false, false);
+ tree_close(con, DONT_KILL_WINDOW, false);
return;
}
}