Fixed sync with xserver when changing workspace

This commit is contained in:
fluxgen 2001-12-18 17:43:49 +00:00
parent 69a4f16e5f
commit 3203526c22

View file

@ -671,10 +671,10 @@ void BScreen::changeWorkspaceID(int id) {
current_workspace->showAll();
if (resource.focus_last && current_workspace->getLastFocusedWindow()) {
XSync(fluxbox->getXDisplay(), False);
if (resource.focus_last && current_workspace->getLastFocusedWindow())
current_workspace->getLastFocusedWindow()->setInputFocus();
}
XSync(fluxbox->getXDisplay(), True);
}
updateNetizenCurrentWorkspace();