aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Lübking <thomas.luebking@gmail.com>2016-09-08 19:21:47 (GMT)
committerThomas Lübking <thomas.luebking@gmail.com>2016-09-11 13:26:12 (GMT)
commit4be68df4b555015bff2fa5d44b1985bdede88792 (patch)
tree7abcf7c69d3a537abd197d8943967076baef4a0e
parent52c9f6257d86e2882434497acf3d8243394fdb8f (diff)
downloadfluxbox-4be68df4b555015bff2fa5d44b1985bdede88792.zip
fluxbox-4be68df4b555015bff2fa5d44b1985bdede88792.tar.bz2
Do not break server grabs
We have a nifty counter-based grab, so use it
-rw-r--r--src/Screen.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index 17d8c23..dbbc875 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -959,7 +959,7 @@ void BScreen::changeWorkspaceID(unsigned int id, bool revert) {
959 this->focusControl().ignoreAtPointer(); 959 this->focusControl().ignoreAtPointer();
960 960
961 FbTk::App::instance()->sync(false); 961 FbTk::App::instance()->sync(false);
962 XGrabServer(Fluxbox::instance()->display()); 962 Fluxbox::instance()->grab();
963 963
964 FluxboxWindow *focused = FocusControl::focusedFbWindow(); 964 FluxboxWindow *focused = FocusControl::focusedFbWindow();
965 965
@@ -997,7 +997,7 @@ void BScreen::changeWorkspaceID(unsigned int id, bool revert) {
997 997
998 old->hideAll(false); 998 old->hideAll(false);
999 999
1000 XUngrabServer(Fluxbox::instance()->display()); 1000 Fluxbox::instance()->ungrab();
1001 FbTk::App::instance()->sync(false); 1001 FbTk::App::instance()->sync(false);
1002 1002
1003 m_currentworkspace_sig.emit(*this); 1003 m_currentworkspace_sig.emit(*this);