Piotr Caban : winemac.drv: Release mouse capture when destroying window specified in SetCapture call.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Jul 17 08:03:42 CDT 2015
Module: wine
Branch: master
Commit: a90592c8d29d3b145eada90c297405cbd8a9277f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a90592c8d29d3b145eada90c297405cbd8a9277f
Author: Piotr Caban <piotr at codeweavers.com>
Date: Fri Jul 17 12:54:54 2015 +0200
winemac.drv: Release mouse capture when destroying window specified in SetCapture call.
---
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 c67ccd0..9d996ec 100644
--- a/dlls/winemac.drv/window.c
+++ b/dlls/winemac.drv/window.c
@@ -1274,6 +1274,8 @@ void CDECL macdrv_DestroyWindow(HWND hwnd)
if (!(data = get_win_data(hwnd))) return;
+ if (hwnd == GetCapture()) macdrv_SetCapture(0, 0);
+
if (data->gl_view) macdrv_dispose_view(data->gl_view);
destroy_cocoa_window(data);
More information about the wine-cvs
mailing list