Moved XSync so it does a redraw
This commit is contained in:
parent
260ce1e171
commit
3c8b0b2dd7
1 changed files with 4 additions and 3 deletions
|
@ -649,6 +649,8 @@ void BScreen::changeWorkspaceID(int id) {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (id != current_workspace->getWorkspaceID()) {
|
if (id != current_workspace->getWorkspaceID()) {
|
||||||
|
XSync(fluxbox->getXDisplay(), True);
|
||||||
|
|
||||||
current_workspace->hideAll();
|
current_workspace->hideAll();
|
||||||
|
|
||||||
workspacemenu->setItemSelected(current_workspace->getWorkspaceID() + 2,
|
workspacemenu->setItemSelected(current_workspace->getWorkspaceID() + 2,
|
||||||
|
@ -672,9 +674,8 @@ void BScreen::changeWorkspaceID(int id) {
|
||||||
current_workspace->showAll();
|
current_workspace->showAll();
|
||||||
|
|
||||||
if (resource.focus_last && current_workspace->getLastFocusedWindow())
|
if (resource.focus_last && current_workspace->getLastFocusedWindow())
|
||||||
current_workspace->getLastFocusedWindow()->setInputFocus();
|
current_workspace->getLastFocusedWindow()->setInputFocus();
|
||||||
|
|
||||||
XSync(fluxbox->getXDisplay(), True);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
updateNetizenCurrentWorkspace();
|
updateNetizenCurrentWorkspace();
|
||||||
|
|
Loading…
Reference in a new issue