From ffe7d9bd87f9295f5f4ba2fa0e0f5c894aa0d981 Mon Sep 17 00:00:00 2001 From: Hagai Cohen Date: Sun, 19 May 2019 12:33:50 +0300 Subject: [PATCH] winex11: ignore clip_reset when trying to clip the mouse after the desktop has been resized imported from https://github.com/ValveSoftware/wine/commit/200ab34e5bd329f773c362e23a556a9a6a3fc516 by AlexeyProkhin --- dlls/winex11.drv/mouse.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/winex11.drv/mouse.c b/dlls/winex11.drv/mouse.c index f737a306a5..50f5aafb7a 100644 --- a/dlls/winex11.drv/mouse.c +++ b/dlls/winex11.drv/mouse.c @@ -526,8 +526,10 @@ BOOL clip_fullscreen_window( HWND hwnd, BOOL reset ) release_win_data( data ); if (!fullscreen) return FALSE; if (!(thread_data = x11drv_thread_data())) return FALSE; - if (GetTickCount() - thread_data->clip_reset < 1000) return FALSE; - if (!reset && clipping_cursor && thread_data->clip_hwnd) return FALSE; /* already clipping */ + if (!reset) { + if (GetTickCount() - thread_data->clip_reset < 1000) return FALSE; + if (clipping_cursor && thread_data->clip_hwnd) return FALSE; /* already clipping */ + } rect = get_primary_monitor_rect(); if (!grab_fullscreen) { -- 2.21.0