1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

winex11.drv: Translate whole_rect to x11 root coordinates in set_size_hints().

whole_rect is in win32 virtual screen coordinates. It needs to be converted to x11 root
coordinates for XSetWMNormalHints().
This commit is contained in:
Zhiyi Zhang 2024-01-03 16:11:17 +08:00 committed by Alexandre Julliard
parent 5a26d87bab
commit a128ad5c5b

View file

@ -716,8 +716,9 @@ static void set_size_hints( struct x11drv_win_data *data, DWORD style )
{
if (data->hwnd != NtUserGetDesktopWindow()) /* don't force position of desktop */
{
size_hints->x = data->whole_rect.left;
size_hints->y = data->whole_rect.top;
POINT pt = virtual_screen_to_root( data->whole_rect.left, data->whole_rect.top );
size_hints->x = pt.x;
size_hints->y = pt.y;
size_hints->flags |= PPosition;
}
else size_hints->win_gravity = NorthWestGravity;