dont grab other windows while warping in opaque mode

This commit is contained in:
Dana Jansens 2002-08-21 09:50:47 +00:00
parent d7a655137b
commit d181f1ad05

View file

@ -3135,6 +3135,9 @@ void BlackboxWindow::doWorkspaceWarping(int x_root, int y_root, int &dx) {
screen->reassociateWindow(this, dest, False);
screen->changeWorkspaceID(dest);
if (screen->doOpaqueMove())
XGrabServer(blackbox->getXDisplay());
XUngrabPointer(blackbox->getXDisplay(), CurrentTime);
XWarpPointer(blackbox->getXDisplay(), None,
screen->getRootWindow(), 0, 0, 0, 0,
@ -3144,6 +3147,9 @@ void BlackboxWindow::doWorkspaceWarping(int x_root, int y_root, int &dx) {
GrabModeAsync, GrabModeAsync,
None, blackbox->getMoveCursor(), CurrentTime);
if (screen->doOpaqueMove())
XUngrabServer(blackbox->getXDisplay());
if (focus)
setInputFocus();