[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/2] SDL2: only show consoles by shortcuts and n
From: |
Gerd Hoffmann |
Subject: |
Re: [Qemu-devel] [PATCH 1/2] SDL2: only show consoles by shortcuts and not hide. |
Date: |
Thu, 08 Sep 2016 08:10:09 +0200 |
On Mi, 2016-09-07 at 15:24 +0300, Andrei Karas wrote:
> >Среда, 7 сентября 2016, 14:27 +03:00 от Gerd Hoffmann <address@hidden>:
> >
> >On Di, 2016-08-23 at 23:36 +0300, Andrei Karas wrote:
> >> This fix issue with stuck keys in SDL2 if press one of shortcuts
> >> for show/hide consoles.
> >
> >More detailed description please. How exactly do you end up with stuck
> >keys?
> For example i using ctrl_grab=on option.
> Without patch if press rctrl+2 cosole window can be drawed and hidden at same
> time many times.
> Console drawed or hidden depend only how long keys was pressed.
Ah, so you hold down the hotkey and key autorepeat will show/hide the
window?
> >So, the hotkey works only in case the window is hidden, so you can't
> >hide windows with the shortcut any more. Is that intentional? Why?
> Because previous explanation i found only solution is limit this keys to
> always show windows.
You can check ev->key.repeat to detect whenever the keypress is a real
one or autorepeat event.
cheers,
Gerd