bugfix: don’t treat workspace as empty if they only have floating windows (+testcase)

This commit is contained in:
Michael Stapelberg
2010-11-20 20:16:15 +01:00
parent db651679c5
commit 39fa1d724a
2 changed files with 55 additions and 1 deletions

View File

@ -205,7 +205,7 @@ void workspace_show(const char *num) {
next = TAILQ_FIRST(&(next->focus_head));
if (TAILQ_EMPTY(&(old->nodes_head))) {
if (TAILQ_EMPTY(&(old->nodes_head)) && TAILQ_EMPTY(&(old->floating_head))) {
/* check if this workspace is currently visible */
if (!workspace_is_visible(old)) {
LOG("Closing old workspace (%p / %s), it is empty\n", old, old->name);