Do not break server grabs

We have a nifty counter-based grab, so use it
This commit is contained in:
Thomas Lübking 2016-09-08 21:21:47 +02:00
parent 52c9f6257d
commit 4be68df4b5

View file

@ -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);