winex11.drv: translate the drop point to the virtual screen (try 2)
Damjan Jovanovic
damjan.jov at gmail.com
Wed Sep 22 08:29:42 CDT 2010
Changelog:
* winex11.drv: translate the drop point to the virtual screen
Fixes X -> Wine drag and drop with > 1 monitor.
Try 2 has the patch.
Damjan Jovanovic
-------------- next part --------------
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-patches
mailing list