From 9fab7b458ace550bf30d6bae2f4d8b55afb468c9 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 12 Sep 2008 11:03:26 +0200 Subject: [PATCH] winex11: Fixed mapping of the move/resize starting point to X11 root coordinates. --- dlls/winex11.drv/window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c index e03bbb6b78e..33adff4790f 100644 --- a/dlls/winex11.drv/window.c +++ b/dlls/winex11.drv/window.c @@ -2293,8 +2293,8 @@ LRESULT X11DRV_SysCommand( HWND hwnd, WPARAM wparam, LPARAM lparam ) xev.xclient.display = display; xev.xclient.send_event = True; xev.xclient.format = 32; - xev.xclient.data.l[0] = x; /* x coord */ - xev.xclient.data.l[1] = y; /* y coord */ + xev.xclient.data.l[0] = x - virtual_screen_rect.left; /* x coord */ + xev.xclient.data.l[1] = y - virtual_screen_rect.top; /* y coord */ xev.xclient.data.l[2] = dir; /* direction */ xev.xclient.data.l[3] = 1; /* button */ xev.xclient.data.l[4] = 0; /* unused */ -- 2.11.4.GIT