mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
winex11: Filter out motion events resulting from setting the clip window.
This commit is contained in:
parent
0e2b4f99a9
commit
d1f5c13162
@ -404,6 +404,12 @@ static BOOL grab_clipping_window( const RECT *clip, BOOL only_with_xinput )
|
||||
clip->left - virtual_screen_rect.left, clip->top - virtual_screen_rect.top,
|
||||
clip->right - clip->left, clip->bottom - clip->top );
|
||||
XMapWindow( data->display, clip_window );
|
||||
|
||||
/* if the rectangle is shrinking we may get a pointer warp */
|
||||
if (msg_hwnd || clip->left > clip_rect.left || clip->top > clip_rect.top ||
|
||||
clip->right < clip_rect.right || clip->bottom < clip_rect.bottom)
|
||||
data->warp_serial = NextRequest( data->display );
|
||||
|
||||
if (!XGrabPointer( data->display, clip_window, False,
|
||||
PointerMotionMask | ButtonPressMask | ButtonReleaseMask,
|
||||
GrabModeAsync, GrabModeAsync, clip_window, None, CurrentTime ))
|
||||
|
Loading…
Reference in New Issue
Block a user