Damjan Jovanovic : winex11.drv: Translate the drop point to the virtual screen.

Alexandre Julliard julliard at winehq.org
Wed Sep 22 14:47:54 CDT 2010


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

Author: Damjan Jovanovic <damjan.jov at gmail.com>
Date:   Wed Sep 22 15:29:42 2010 +0200

winex11.drv: Translate the drop point to the virtual screen.

---

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

diff --git a/dlls/winex11.drv/xdnd.c b/dlls/winex11.drv/xdnd.c
index de689fd..f503884 100644
--- a/dlls/winex11.drv/xdnd.c
+++ b/dlls/winex11.drv/xdnd.c
@@ -284,6 +284,8 @@ void X11DRV_XDND_PositionEvent( HWND hWnd, XClientMessageEvent *event )
 
     XDNDxy.x = event->data.l[2] >> 16;
     XDNDxy.y = event->data.l[2] & 0xFFFF;
+    XDNDxy.x += virtual_screen_rect.left;
+    XDNDxy.y += virtual_screen_rect.top;
     targetWindow = WindowFromPoint(XDNDxy);
 
     pointl.x = XDNDxy.x;




More information about the wine-cvs mailing list