Alexandre Julliard : winex11: Fixed mapping of the move/ resize starting point to X11 root coordinates.

Alexandre Julliard julliard at winehq.org
Fri Sep 12 07:01:09 CDT 2008


Module: wine
Branch: master
Commit: 9fab7b458ace550bf30d6bae2f4d8b55afb468c9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9fab7b458ace550bf30d6bae2f4d8b55afb468c9

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Sep 12 11:03:26 2008 +0200

winex11: Fixed mapping of the move/resize starting point to X11 root coordinates.

---

 dlls/winex11.drv/window.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index e03bbb6..33adff4 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 */




More information about the wine-cvs mailing list