Please discard this patch. An updated version follows.
Lauri Kenttä writes:
> So is it then possible to clip the cursor to the virtual desktop in
> the wineserver, or do you see some apparent problem there? I would be
> surprised if this was the only application to choke on strange mouse
> coordinates.
It's possible, but it's not clear that it's des
On Wed, 18 May 2011 12:22:57 +0200, Alexandre Julliard wrote:
The clip rectangle is only valid while the pointer is grabbed, in
which
case the cursor pos will be clipped already.
That's true. I only tested the other case.
So for the case where the pointer is not grabbed (for instance if yo
Lauri Kenttä 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 point
Marcus Meissner writes:
> ---
> dlls/dinput/Makefile.in|1 -
> dlls/dinput/data_formats.c | 566
>
> dlls/dxguid/dxguid.c | 545 ++
> 3 files changed, 545 insertions(+), 567 deletions(-)
> dele
Lauri Kenttä 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 +