Ken Thomases : winemac: Don' t attempt to set surface for child windows in macdrv_WindowPosChanged().
Alexandre Julliard
julliard at winehq.org
Wed Feb 1 15:26:10 CST 2017
Module: wine
Branch: master
Commit: af54f956bfd4addb956584a0cceea4d990922b03
URL: http://source.winehq.org/git/wine.git/?a=commit;h=af54f956bfd4addb956584a0cceea4d990922b03
Author: Ken Thomases <ken at codeweavers.com>
Date: Wed Feb 1 10:12:30 2017 -0600
winemac: Don't attempt to set surface for child windows in macdrv_WindowPosChanged().
The skipped code is a no-op for the child window case, except that the call to
set_window_surface() synchronizes with the main thread, even with null arguments.
Signed-off-by: Ken Thomases <ken at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/winemac.drv/window.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winemac.drv/window.c b/dlls/winemac.drv/window.c
index 9824d99..6e0926c 100644
--- a/dlls/winemac.drv/window.c
+++ b/dlls/winemac.drv/window.c
@@ -2021,7 +2021,7 @@ void CDECL macdrv_WindowPosChanged(HWND hwnd, HWND insert_after, UINT swp_flags,
data->window_rect = *window_rect;
data->whole_rect = *visible_rect;
data->client_rect = *client_rect;
- if (!data->ulw_layered)
+ if (data->cocoa_window && !data->ulw_layered)
{
if (surface) window_surface_add_ref(surface);
if (new_style & WS_MINIMIZE)
More information about the wine-cvs
mailing list