winex11.drv: Do not set clipping_cursor when clip window map state changes.

This flag should only indicate a successful call to XGrabPointer. If not
then we could assume we have ownership of the pointer when we don't.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
stable
Rémi Bernon 2019-08-30 12:18:01 +02:00 committed by Alexandre Julliard
parent 92177b0b16
commit 6f9e788fc0
1 changed files with 2 additions and 7 deletions

View File

@ -984,11 +984,8 @@ static BOOL X11DRV_MapNotify( HWND hwnd, XEvent *event )
{
struct x11drv_win_data *data;
if (event->xany.window == x11drv_thread_data()->clip_window)
{
clipping_cursor = TRUE;
return TRUE;
}
if (event->xany.window == x11drv_thread_data()->clip_window) return TRUE;
if (!(data = get_win_data( hwnd ))) return FALSE;
if (!data->managed && !data->embedded && data->mapped)
@ -1007,8 +1004,6 @@ static BOOL X11DRV_MapNotify( HWND hwnd, XEvent *event )
*/
static BOOL X11DRV_UnmapNotify( HWND hwnd, XEvent *event )
{
if (event->xany.window == x11drv_thread_data()->clip_window)
clipping_cursor = FALSE;
return TRUE;
}