From e929e3b603d0f375c4ae986137ae561131cc131e Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 23 Jan 2008 16:40:54 +0100 Subject: [PATCH] winex11: Get the icon from the window in case it was changed before the whole window was created. --- dlls/winex11.drv/window.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c index aa860eece84..c52d13a0a6e 100644 --- a/dlls/winex11.drv/window.c +++ b/dlls/winex11.drv/window.c @@ -849,8 +849,10 @@ static void set_initial_wm_hints( Display *display, struct x11drv_win_data *data if (data->wm_hints) { + HICON icon = (HICON)SendMessageW( data->hwnd, WM_GETICON, ICON_BIG, 0 ); + if (!icon) icon = (HICON)GetClassLongPtrW( data->hwnd, GCLP_HICON ); data->wm_hints->flags = 0; - set_icon_hints( display, data, (HICON)GetClassLongPtrW( data->hwnd, GCLP_HICON ) ); + set_icon_hints( display, data, icon ); } }