Bugfix: with one ws per output, don’t crash on cross-output moves (Thanks moju)

fixes #827
This commit is contained in:
Michael Stapelberg
2012-09-28 23:04:37 +02:00
parent 66b389cba1
commit 43d486441d
3 changed files with 66 additions and 5 deletions

View File

@ -365,7 +365,7 @@ static void _workspace_show(Con *workspace) {
workspace_reassign_sticky(workspace);
LOG("switching to %p\n", workspace);
DLOG("switching to %p / %s\n", workspace, workspace->name);
Con *next = con_descend_focused(workspace);
/* Memorize current output */
@ -400,6 +400,7 @@ static void _workspace_show(Con *workspace) {
} else
con_focus(next);
DLOG("old = %p / %s\n", old, (old ? old->name : "(null)"));
/* Close old workspace if necessary. This must be done *after* doing
* urgency handling, because tree_close() will do a con_focus() on the next
* client, which will clear the urgency flag too early. Also, there is no