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:
parent
5a26d87bab
commit
a128ad5c5b
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue