Re: [hatari-devel] Mouse pointer sync (was: Strange timestamp issue)

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Am Thu, 1 Aug 2024 13:59:12 +0200
schrieb Uwe Seimet <Uwe.Seimet@xxxxxxxxx>:

> Hi Thomas,
> 
> > Thinking about this for a while, it might already help to generate
> > additional mouse movement events when we detect that the mouse curser
> > leaves and re-enters the window. Could you please try whether something
> > like this works for you:
> 
> This sounds like an interesting idea. And indeed, the behavior of the mouse
> pointer is better now. Without the patch after moving the mouse pointer out
> of the Hatari window and moving it around on the Linux desktop, the pointer
> was immediately out of sync after re-entering the Hatari window. Now as long
> as no other windows are involved it is much better. But as soon as I open
> another window that covers the Hatari window, everything is out of sync
> again. Looks to me as if some movements get lost in this case?

I tried a couple of times, but I cannot reproduce that problem with the
covering window here (using Linux with XFCE). Maybe it depends on the
desktop environment?

So no clue how to fix that problem... maybe you could try whether it works
any better if you add the new code only to SDL_WINDOWEVENT_LEAVE and
SDL_WINDOWEVENT_ENTER instead of executing it for SDL_WINDOWEVENT_FOCUS_GAINED
and SDL_WINDOWEVENT_FOCUS_LOST, too? ... I doubt that such a change will
help, but it is maybe still worth a try.

 Thomas



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/