Lauri Kenttä lauri.kentta@gmail.com writes:
@@ -1245,8 +1245,17 @@ BOOL CDECL X11DRV_GetCursorPos(LPPOINT pos) if (ret) { POINT old = *pos;
RECT clip = clipping_cursor ? clip_rect : virtual_screen_rect; pos->x = winX + virtual_screen_rect.left; pos->y = winY + virtual_screen_rect.top;
if (pos->x < clip.left)
pos->x = clip.left;
if (pos->x >= clip.right)
pos->x = clip.right - 1;
if (pos->y < clip.top)
pos->y = clip.top;
if (pos->y >= clip.bottom)
pos->y = clip.bottom - 1;
That won't really do what you want. Why do you need this?