bugfix: don’t clean up workspace when switching to the same workspace

This commit is contained in:
Michael Stapelberg
2010-05-09 23:20:49 +02:00
parent 0a04ed618b
commit 65e9036837
2 changed files with 8 additions and 1 deletions

View File

@ -101,6 +101,8 @@ void workspace_show(const char *num) {
old = con_get_workspace(focused);
workspace = workspace_get(num);
if (workspace == old)
return;
workspace->fullscreen_mode = CF_OUTPUT;
/* disable fullscreen */
TAILQ_FOREACH(current, &(workspace->parent->nodes_head), nodes)