Commit a128ad5c authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

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().
parent 5a26d87b
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment