diff options
Diffstat (limited to 'src/Screen.cc')
-rw-r--r-- | src/Screen.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Screen.cc b/src/Screen.cc index 251284a..bcada25 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -649,6 +649,8 @@ void BScreen::changeWorkspaceID(int id) { | |||
649 | return; | 649 | return; |
650 | 650 | ||
651 | if (id != current_workspace->getWorkspaceID()) { | 651 | if (id != current_workspace->getWorkspaceID()) { |
652 | XSync(fluxbox->getXDisplay(), True); | ||
653 | |||
652 | current_workspace->hideAll(); | 654 | current_workspace->hideAll(); |
653 | 655 | ||
654 | workspacemenu->setItemSelected(current_workspace->getWorkspaceID() + 2, | 656 | workspacemenu->setItemSelected(current_workspace->getWorkspaceID() + 2, |
@@ -672,9 +674,8 @@ void BScreen::changeWorkspaceID(int id) { | |||
672 | current_workspace->showAll(); | 674 | current_workspace->showAll(); |
673 | 675 | ||
674 | if (resource.focus_last && current_workspace->getLastFocusedWindow()) | 676 | if (resource.focus_last && current_workspace->getLastFocusedWindow()) |
675 | current_workspace->getLastFocusedWindow()->setInputFocus(); | 677 | current_workspace->getLastFocusedWindow()->setInputFocus(); |
676 | 678 | ||
677 | XSync(fluxbox->getXDisplay(), True); | ||
678 | } | 679 | } |
679 | 680 | ||
680 | updateNetizenCurrentWorkspace(); | 681 | updateNetizenCurrentWorkspace(); |