winex11: Reset embedded window position to 0x0 before docking it.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=57370
This commit is contained in:
Rémi Bernon 2024-10-31 11:25:58 +01:00 committed by Alexandre Julliard
parent b240f8ea93
commit 51f6839395
Notes: Alexandre Julliard 2024-11-14 23:13:45 +01:00
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/wine/merge_requests/6815

View file

@ -2474,6 +2474,7 @@ BOOL X11DRV_SystrayDockInsert( HWND hwnd, UINT cx, UINT cy, void *icon )
window = data->whole_window; window = data->whole_window;
release_win_data( data ); release_win_data( data );
NtUserSetWindowPos( hwnd, NULL, 0, 0, 0, 0, SWP_NOSIZE|SWP_NOZORDER );
NtUserShowWindow( hwnd, SW_SHOWNA ); NtUserShowWindow( hwnd, SW_SHOWNA );
TRACE_(systray)( "icon window %p/%lx\n", hwnd, window ); TRACE_(systray)( "icon window %p/%lx\n", hwnd, window );