Moved XSync so it does a redraw

This commit is contained in:
fluxgen 2001-12-19 14:30:44 +00:00
parent 260ce1e171
commit 3c8b0b2dd7

View file

@ -649,6 +649,8 @@ void BScreen::changeWorkspaceID(int id) {
return;
if (id != current_workspace->getWorkspaceID()) {
XSync(fluxbox->getXDisplay(), True);
current_workspace->hideAll();
workspacemenu->setItemSelected(current_workspace->getWorkspaceID() + 2,
@ -672,9 +674,8 @@ void BScreen::changeWorkspaceID(int id) {
current_workspace->showAll();
if (resource.focus_last && current_workspace->getLastFocusedWindow())
current_workspace->getLastFocusedWindow()->setInputFocus();
XSync(fluxbox->getXDisplay(), True);
current_workspace->getLastFocusedWindow()->setInputFocus();
}
updateNetizenCurrentWorkspace();