[PATCH] winex11: Make GetCursorPos respect clipping and virtual screen size.

Alexandre Julliard julliard at winehq.org
Wed May 18 05:22:57 CDT 2011


Lauri Kenttä <lauri.kentta at gmail.com> writes:

> On Wed, 18 May 2011 10:57:24 +0200, Alexandre Julliard wrote:
>>
>> That won't really do what you want. Why do you need this?
>
> Then what does it do wrong? It seems to do exactly what I want and
> mostly what Windows does.

The clip rectangle is only valid while the pointer is grabbed, in which
case the cursor pos will be clipped already. So for the case where the
pointer is not grabbed (for instance if you don't have XInput) it would
have to go through the wineserver.

> The clipping is necessary for games using Infinite Engine
> (e.g. Baldur's Gate) for border scrolling when using virtual
> desktop. Otherwise it's next to impossible to scroll because the game
> only checks for one pixel at the border (e.g. x == 0) but Wine
> currently returns also values that never occur on Windows (e.g. x ==
> -1).

Have you tried the new desktop clipping mode?

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list