winemac.drv: Release mouse capture when destroying window specified in SetCapture call

Ken Thomases ken at codeweavers.com
Fri Jul 17 06:27:56 CDT 2015


On Jul 17, 2015, at 5:54 AM, Piotr Caban <piotr at codeweavers.com> wrote:

> ---
> 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);
>  
> 

Looks good to me.  Thanks!

-Ken




More information about the wine-devel mailing list