From 51f6839395bbd296e9a30d7ca4941337a5a69a42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Bernon?= Date: Thu, 31 Oct 2024 11:25:58 +0100 Subject: [PATCH] winex11: Reset embedded window position to 0x0 before docking it. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=57370 --- dlls/winex11.drv/window.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c index 0c1738c26c6..98772f3d44e 100644 --- a/dlls/winex11.drv/window.c +++ b/dlls/winex11.drv/window.c @@ -2474,6 +2474,7 @@ BOOL X11DRV_SystrayDockInsert( HWND hwnd, UINT cx, UINT cy, void *icon ) window = data->whole_window; release_win_data( data ); + NtUserSetWindowPos( hwnd, NULL, 0, 0, 0, 0, SWP_NOSIZE|SWP_NOZORDER ); NtUserShowWindow( hwnd, SW_SHOWNA ); TRACE_(systray)( "icon window %p/%lx\n", hwnd, window );