[PATCH v2 2/5] winemac.drv: Stop cursor clipping when the app deactivates.
Tim Clem
tclem at codeweavers.com
Tue Oct 19 16:21:10 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.
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 622f136930c3..e25e142bd1a6 100644
--- a/dlls/winemac.drv/window.c
+++ b/dlls/winemac.drv/window.c
@@ -2406,6 +2406,8 @@ void macdrv_app_activated(void)
*/
void macdrv_app_deactivated(void)
{
+ ClipCursor(NULL);
+
if (GetActiveWindow() == GetForegroundWindow())
{
TRACE("setting fg to desktop\n");
--
2.33.0
More information about the wine-devel
mailing list