Ui 20190822 patches
[Qemu-devel] [PULL 1/2] curses: assert get_wch return value is okay
In reply to Gerd HoffmannFrom: Paolo Bonzini <[email protected]>
This prevents the compiler from reporting a possible uninitialized use of maybe_keycode in function curses_refresh.
Message-id: [email protected]
[ kraxel: whitespace fixup ]
--- ui/curses.c | 2 ++ 1 file changed, 2 insertions(+)
ui/curses.c +2 -0
@@ -225,6 +225,8 @@ static wint_t console_getch(enum maybe_keycode *maybe_keycode)case ERR : ret =-1 ;break ; +default : +abort (); }return ret; }
Signature · 1 line
2.18.1
[Qemu-devel] [PULL 2/2] input-linux: add shift+shift as a grab toggle
In reply to Gerd HoffmannFrom: Niklas Haas <[email protected]>
We have ctrl-ctrl and alt-alt; why not shift-shift? That's my preferred grab binding, personally.
Message-id: [email protected]
--- ui/input-linux.c | 4 ++++ qapi/ui.json | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-)
ui/input-linux.c +4 -0
@@ -113,6 +113,10 @@ static bool input_linux_check_toggle(InputLinux *il)return il->keydown[KEY_LEFTALT ] && il->keydown[KEY_RIGHTALT ]; +case GRAB_TOGGLE_KEYS_SHIFT_SHIFT : +return il->keydown[KEY_LEFTSHIFT ] && + il->keydown[KEY_RIGHTSHIFT ]; +case GRAB_TOGGLE_KEYS_META_META :return il->keydown[KEY_LEFTMETA ] && il->keydown[KEY_RIGHTMETA ];
qapi/ui.json +2 -1
@@ -1025,7 +1025,8 @@ # ## { 'enum': 'GrabToggleKeys', - 'data': [ 'ctrl-ctrl', 'alt-alt', 'meta-meta', 'scrolllock', 'ctrl-scrolllock' ] } + 'data': [ 'ctrl-ctrl', 'alt-alt', 'shift-shift','meta-meta', 'scrolllock', + 'ctrl-scrolllock' ] } ## # @DisplayGTK:
Signature · 1 line
2.18.1
The following changes since commit 17dc57990320edaad52ac9ea808be9719c91cea6:
Merge remote-tracking branch 'remotes/huth-gitlab/tags/pull-request-2019-08-20' into staging (2019-08-20 14:14:20 +0100)
are available in the Git repository at:
git://git.kraxel.org/qemu tags/ui-20190822-pull-request
for you to fetch changes up to a923b471fc59389e49575f38f4db3cd622619bf5:
input-linux: add shift+shift as a grab toggle (2019-08-21 12:25:46 +0200)
----------------------------------------------------------------
curses: assert get_wch return value is okay
input-linux: add shift+shift as a grab toggle
----------------------------------------------------------------
Niklas Haas (1):
input-linux: add shift+shift as a grab toggle
Paolo Bonzini (1):
curses: assert get_wch return value is okay
ui/curses.c | 2 ++ ui/input-linux.c | 4 ++++ qapi/ui.json | 3 ++- 3 files changed, 8 insertions(+), 1 deletion(-)
Signature · 1 line
2.18.1
Peter Maydell
AppliedQuoted 22 lines · Gerd Hoffmann
The following changes since commit
17dc57990320edaad52ac9ea808be9719c91cea6:Merge remote-tracking branch 'remotes/huth-gitlab/tags/pull-request-2019-08-20' into staging (2019-08-20 14:14:20 +0100)
are available in the Git repository at:
git://git.kraxel.org/qemutags/ui-20190822-pull-requestfor you to fetch changes up to
a923b471fc59389e49575f38f4db3cd622619bf5:input-linux: add shift+shift as a grab toggle (2019-08-21 12:25:46 +0200)
----------------------------------------------------------------
curses: assertget_wchreturn value is okay
input-linux: add shift+shift as a grab toggle----------------------------------------------------------------
Niklas Haas (1):
input-linux: add shift+shift as a grab toggle
Quoted 8 lines
Paolo Bonzini (1):
curses: assertget_wchreturn value is okayui/curses.c | 2 ++ ui/input-linux.c | 4 ++++ qapi/ui.json | 3 ++- 3 files changed, 8 insertions(+), 1 deletion(-)
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/4.2
for any user-visible changes.
-- PMM