aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2001-12-19 14:30:44 (GMT)
committerfluxgen <fluxgen>2001-12-19 14:30:44 (GMT)
commit3c8b0b2dd714b5525e4e537cf03d66efa115e7b9 (patch)
treeb2cb4ea2a61e4e161217ba44e0f265414b51296d
parent260ce1e171bcab1fc60bd1c01219c69b9d8facc2 (diff)
downloadfluxbox_paul-3c8b0b2dd714b5525e4e537cf03d66efa115e7b9.zip
fluxbox_paul-3c8b0b2dd714b5525e4e537cf03d66efa115e7b9.tar.bz2
Moved XSync so it does a redraw
-rw-r--r--src/Screen.cc7
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();