From 3c8b0b2dd714b5525e4e537cf03d66efa115e7b9 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Wed, 19 Dec 2001 14:30:44 +0000 Subject: Moved XSync so it does a redraw --- src/Screen.cc | 7 ++++--- 1 file 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) { 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(); -- cgit v0.11.2