From 4be68df4b555015bff2fa5d44b1985bdede88792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Thu, 8 Sep 2016 21:21:47 +0200 Subject: Do not break server grabs We have a nifty counter-based grab, so use it --- src/Screen.cc | 4 ++-- 1 file 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) { this->focusControl().ignoreAtPointer(); FbTk::App::instance()->sync(false); - XGrabServer(Fluxbox::instance()->display()); + Fluxbox::instance()->grab(); FluxboxWindow *focused = FocusControl::focusedFbWindow(); @@ -997,7 +997,7 @@ void BScreen::changeWorkspaceID(unsigned int id, bool revert) { old->hideAll(false); - XUngrabServer(Fluxbox::instance()->display()); + Fluxbox::instance()->ungrab(); FbTk::App::instance()->sync(false); m_currentworkspace_sig.emit(*this); -- cgit v0.11.2