|Re: [hatari-devel] Some buttons are not deselected / accepted|
[ Thread Index |
| More lists.tuxfamily.org/hatari-devel Archives
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Some buttons are not deselected / accepted
- From: Thomas Huth <th.huth@xxxxxxxxx>
- Date: Sat, 4 Sep 2021 15:30:19 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1630769420; bh=ime/H7Wf7vxrAqH2tdtLiJGISNKcf/ym/e9BJYlX7QI=; h=Date:From:To:Subject:From; b=qITWzsq93OyLqrYXhCLUTAfiL5iLbW7NMvX3YEDt6WLER0CXiAm8VyFgEXYpYJ1NM faouZC3xlwQ+z4F0L0uOc1qRLSMlSR9BhXMIXHhrlHbnCeAEN09UO6cN7kiNYLB4U4 kCfOB8jXPdNFUAq/hwJ1UiC+7fxdU9aq2I2X0LqMmh5ujT7Mp9ZRa242vQ3uOesDza TM2PfDl6vJkwL9+ot/6JGZWrPfWucHNfjUbFD6UDoFSuHcBXrinpamWr5rDNG6JdiU 0Y36OWevnmjNSJe5b+LU1vPBC+1VX5Q/pkXgpID5TB9PuaSvAB0Dx8byKKgRR93Qsj b/aSpC91U4jFA==
Am Sat, 4 Sep 2021 13:31:10 +0300
schrieb Eero Tamminen <oak@xxxxxxxxxxxxxx>:
> On 4.9.2021 0.19, Miro Kropáček wrote:
> > Mystery solved. As expected, this was a setup issue, although an
> > intriguing one. For some reason, in the file dialog (and only
> > there),
> File dialog seems to be only one requesting
> SDLGui_DoDialog() to notify it of "unknown"
> > SDL generates a "SDL_KEYMAPCHANGED" event which totally confuses
> > the SDL GUI handler. Interestingly, it has been added in SDL 2.0.4
> > so it surely must be coming only from my system. Why? No clue.
> SDL docs say it means that: "keymap changed due
> to a system event such as an input language or
> keyboard layout change".
> > Btw that handler is pretty fragile as you can see, one unknown
> > event and we abort everything, leaving the UI in quite a broken
> > state.
> I do not see why. After file selector processes
> (ignores) the unknown event, SDLGui_DoDialog() is
> called again.
I just had a very quick look (no time for proper debugging and
fixing the problem right now, sorry), but I think you can also reproduce
this behavior on any other instance of Hatari, too: It happens if there
is another event between mouse button down and mouse button up (which
seems to happen automatically on Miro's system, but normally does not
happen for everybody else). So you can go to the file selection dialog,
push the mouse button down over one of the buttons there, then provoke a
different event like pressing the SHIFT key, and then just release the
mouse afterwards. The button then stays pressed.