Continuous grab in X11 could give events to a different window if the mouse was moved very fast (before it warped) or if there was another blender window with the same process set to always on top.

call XGrabPointer with owner_events set to false so mouse events are given to the window that initiated the grab.
This commit is contained in:
Campbell Barton
2010-01-21 18:32:34 +00:00
parent 1425a9f6bc
commit 8c0dff6bc3

View File

@@ -1435,7 +1435,7 @@ setWindowCursorGrab(
setWindowCursorVisibility(false);
}
XGrabPointer(m_display, m_window, True, ButtonPressMask| ButtonReleaseMask|PointerMotionMask, GrabModeAsync, GrabModeAsync, None, None, CurrentTime);
XGrabPointer(m_display, m_window, False, ButtonPressMask| ButtonReleaseMask|PointerMotionMask, GrabModeAsync, GrabModeAsync, None, None, CurrentTime);
}
else {
if (m_cursorGrab==GHOST_kGrabHide) {