Re: [hatari-devel] Mouse pointer sync (was: Strange timestamp issue) |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Mouse pointer sync (was: Strange timestamp issue)
- From: Uwe Seimet <Uwe.Seimet@xxxxxxxxx>
- Date: Fri, 2 Aug 2024 10:29:38 +0200
- Arc-authentication-results: i=1; strato.com; arc=none; dkim=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1722587386; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=ZO/rplg5GFO9m1NouAyuXx9rgTbOi4lkHgew0iWWEt8=; b=CI9b5zTDpBxsQ5WIz2JtGOzKrJQM8CsxfZK1Ff+bzT//ePCOHj7aU/kpkkv1pVUTYx QG4MgWUGN+nvpmaUKKV4PmaPiW8iN4pPegqSZSj5w45XIoahYbE7fnefAdgAYEN+Pwow yF9SgiRVa9c7iQXfoKD/lCmKnUCjSvHx5dgBP0uzu/Qs8JlHpN0Hr0WDSoHsRtF9ZElD cYWSNujLvEbtIz6XPPQTCb5moOKhJ6zIw6ykyYU1vpgyMi8d/22ZnfAvcA7zcAvllgNf 3shj54nupKdHWjVsQu58jQQxya15eJNK0FskuxqZDgJDsCnzy3KzrPkAFnvN14wSXNc7 ESKQ==
- Arc-seal: i=1; a=rsa-sha256; t=1722587386; cv=none; d=strato.com; s=strato-dkim-0002; b=a2wuTZGPM3vPmoL71ajN+96+ayziOICtm0R8ijySm8EGeIbN57oXIaIJ6t8CTfwRNt Md2FXRzXO9yy6zGb8ACk6QvNxv6FpHuKVl0SbtjafDknVdIfAsZlHA/LYd1KpU3d+CdZ PIJNKMzBokMWQ2QwMPZotTgJ9cyb00kLFbahjjQ4D44o4qR5PKrXXUGypwImf8eAN9eA d7d/yUoBJtrIGWHjevCvEBuNGcV5ysCDWcXBZWvEXQchYY5TSWOcvw3ikJHj2ddjNncH aOw8LGuGggeA+gNLDvEwWhNflOkHwnmbbmZmVEhIhqDScw3qS9CgQSFlz6Po9yaJb4aG kVBw==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1722587386; s=strato-dkim-0002; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=ZO/rplg5GFO9m1NouAyuXx9rgTbOi4lkHgew0iWWEt8=; b=R8XTgnoYwSaR8Ll1P3oG3DjQW/KW8ZA8bZFafCFj94rlJx5B0fbc/yxdigln8Yb1O1 7KGZhxIWs0GM5qzlZ4rTXySx9qdc2kDddnBpbSNHvjZbnNuPmkzPhVww5H6XlIdpEgR8 9m0cgw03DfyOXhytvrYN/VuQPrZHdeCdkvYc7f3XkZsACzrmb2CTenDtCEeLYyyhybMX KjQ5akdebvSQXHDRTx/5wntqjGI9+KkHwD7vtqgwCvf0Innobk6sfz/L/r6eYyKPe44u 3jTANk7j7WvtE7cwPtz2hElnRxds8HhoXqU+HTmHoWsHRZo7joRqMw5tZHQPBHDUF5uv WzMQ==
- Dkim-signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1722587386; s=strato-dkim-0003; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=ZO/rplg5GFO9m1NouAyuXx9rgTbOi4lkHgew0iWWEt8=; b=moz2xvHI8hE3LQJHhFi350BHbxljpLDs7hirpXUjmwhB5OKwKHMLgcSMwBMFPPXucT 2RCT3+7XkBM3Y7fPmkDw==
> > 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.
This change helps, indeed. The problem caused by windows on top of the
Hatari window is gone. If I re-add SDL_WINDOWEVENT_FOCUS_GAINED and
SDL_WINDOWEVENT_FOCUS_LOST it's there again. (I'm using KDE.)
All in all, with these changes my initial mouse pointer problems appears to
be resolved, which is great!
Please tackle the fast-forwarding problem/timestamp problem next ;-). If
it's not too much work it would be nice to test whether things improve when
the behavior of the system timer is changed, as Thorsten suggested.
Best regards
Uwe