forked from Mirrors/wine-wine
winemac.drv: Release mouse capture when destroying window specified in SetCapture call.
parent
6ab6c23707
commit
a90592c8d2
|
@ -1274,6 +1274,8 @@ void CDECL macdrv_DestroyWindow(HWND hwnd)
|
||||||
|
|
||||||
if (!(data = get_win_data(hwnd))) return;
|
if (!(data = get_win_data(hwnd))) return;
|
||||||
|
|
||||||
|
if (hwnd == GetCapture()) macdrv_SetCapture(0, 0);
|
||||||
|
|
||||||
if (data->gl_view) macdrv_dispose_view(data->gl_view);
|
if (data->gl_view) macdrv_dispose_view(data->gl_view);
|
||||||
destroy_cocoa_window(data);
|
destroy_cocoa_window(data);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue