winex11.drv: Added missing mouse position clipping. (try 2)

Lauri Kenttä lauri.kentta at gmail.com
Sat Jan 16 06:23:04 CST 2010


When the cursor position is clipped with ClipCursor, the cursor should be
confined to that area. This patch fixes cursor position clipping in
X11DRV_ClipCursor, X11DRV_GetCursorPos, X11DRV_SetCursorPos and
X11DRV_send_mouse_input and makes the mouse warp to the new position if
moved outside the clip rect.

The previous try fixed only clipping (not warping) and only in
GetCursorPos, but the problem wasn't that small after all.
---
 dlls/winex11.drv/mouse.c |   52
++++++++++++++++++++++++++++++++++++---------
 1 files changed, 41 insertions(+), 11 deletions(-)



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-winex11.drv-Added-missing-mouse-position-clipping.txt
Type: text/x-patch
Size: 4653 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20100116/ab6bc208/attachment.bin>


More information about the wine-patches mailing list