diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-01-21 21:32:34 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-01-21 21:32:34 +0300 |
commit | 8c0dff6bc3a64d84f14d68f5af6f73fa27338ce5 (patch) | |
tree | 5e972009886b3138f82eab2fa4123a39fca1aa16 /intern | |
parent | 1425a9f6bc2d93cb8e61bcfa9f9b976509ee2c9f (diff) |
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.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_WindowX11.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_WindowX11.cpp b/intern/ghost/intern/GHOST_WindowX11.cpp index c04b3379b60..6c15d5d4e32 100644 --- a/intern/ghost/intern/GHOST_WindowX11.cpp +++ b/intern/ghost/intern/GHOST_WindowX11.cpp @@ -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) { |