(X11) Remove useless XGrabs

This commit is contained in:
sonninnos 2021-03-08 19:57:46 +02:00
parent a60e7ad42a
commit ce29b70ae9

View File

@ -786,15 +786,6 @@ static void x_grab_mouse(void *data, bool state)
return;
x11->mouse_grabbed = state;
if (state)
{
XGrabPointer(x11->display, x11->win, False,
ButtonPressMask | ButtonReleaseMask | PointerMotionMask,
GrabModeAsync, GrabModeAsync, x11->win, None, CurrentTime);
}
else
XUngrabPointer(x11->display, CurrentTime);
}
static uint64_t x_input_get_capabilities(void *data)