diff options
author | Thomas Lübking <thomas.luebking@gmail.com> | 2016-08-11 12:51:07 (GMT) |
---|---|---|
committer | Mathias Gumz <akira@fluxbox.org> | 2016-08-26 06:34:00 (GMT) |
commit | f176c108819be611371cf740663dec4f6352c8e8 (patch) | |
tree | 2b966d846055037bf40b4b0f8f2fdc0571a77e8d /src/Screen.cc | |
parent | 9613d2cd83ce8a38f532246e432e01eec062bc13 (diff) | |
download | fluxbox-f176c108819be611371cf740663dec4f6352c8e8.zip fluxbox-f176c108819be611371cf740663dec4f6352c8e8.tar.bz2 |
Grab Server when showing or switching desktop
Should reduce exposure events, notably since the
windows are not in stack order.
Diffstat (limited to 'src/Screen.cc')
-rw-r--r-- | src/Screen.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Screen.cc b/src/Screen.cc index 83a864b..013b6c6 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -953,6 +953,7 @@ void BScreen::changeWorkspaceID(unsigned int id, bool revert) { | |||
953 | this->focusControl().ignoreAtPointer(); | 953 | this->focusControl().ignoreAtPointer(); |
954 | 954 | ||
955 | FbTk::App::instance()->sync(false); | 955 | FbTk::App::instance()->sync(false); |
956 | XGrabServer(Fluxbox::instance()->display()); | ||
956 | 957 | ||
957 | FluxboxWindow *focused = FocusControl::focusedFbWindow(); | 958 | FluxboxWindow *focused = FocusControl::focusedFbWindow(); |
958 | 959 | ||
@@ -990,6 +991,7 @@ void BScreen::changeWorkspaceID(unsigned int id, bool revert) { | |||
990 | 991 | ||
991 | old->hideAll(false); | 992 | old->hideAll(false); |
992 | 993 | ||
994 | XUngrabServer(Fluxbox::instance()->display()); | ||
993 | FbTk::App::instance()->sync(false); | 995 | FbTk::App::instance()->sync(false); |
994 | 996 | ||
995 | m_currentworkspace_sig.emit(*this); | 997 | m_currentworkspace_sig.emit(*this); |