[PATCH v2 3/5] winemac.drv: Stop cursor clipping when a window is resized by dragging.

Tim Clem tclem at codeweavers.com
Tue Oct 19 16:21:11 CDT 2021


Testing on Windows confirms this behavior.

Signed-off-by: Tim Clem <tclem at codeweavers.com>
---
v2: Do this at a lower level so that the server (and, e.g.,    
GetClipCursor) stay in sync.

Note that ef46771 locked windows when the cursor is clipped by default.
The Mac driver registry key CursorClippingLocksWindows must be set to N
to enable this behavior.

 dlls/winemac.drv/window.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/winemac.drv/window.c b/dlls/winemac.drv/window.c
index e25e142bd1a6..eb23812d57c3 100644
--- a/dlls/winemac.drv/window.c
+++ b/dlls/winemac.drv/window.c
@@ -2873,6 +2873,8 @@ BOOL query_resize_start(HWND hwnd)
 {
     TRACE("hwnd %p\n", hwnd);
 
+    ClipCursor(NULL);
+
     sync_window_min_max_info(hwnd);
     SendMessageW(hwnd, WM_ENTERSIZEMOVE, 0, 0);
 
-- 
2.33.0




More information about the wine-devel mailing list