Accepting request 703814 from home:bfrogers:branches:Virtualization
- Patch queue updated from git://github.com/openSUSE/qemu.git opensuse-4.0 * Patches added: 0045-kbd-state-fix-autorepeat-handling.patch - Fix regression in autorepeat key handling 0045-kbd-state-fix-autorepeat-handling.patch - Patch queue updated from git://github.com/openSUSE/qemu.git opensuse-4.0 - Fix file list - Fix regression in autorepeat key handling 0045-kbd-state-fix-autorepeat-handling.patch - Patch queue updated from git://github.com/openSUSE/qemu.git opensuse-4.0 - Fix file list OBS-URL: https://build.opensuse.org/request/show/703814 OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=473
This commit is contained in:
parent
f9e7b0667e
commit
301f790b81
36
0045-kbd-state-fix-autorepeat-handling.patch
Normal file
36
0045-kbd-state-fix-autorepeat-handling.patch
Normal file
@ -0,0 +1,36 @@
|
||||
From: Gerd Hoffmann <kraxel@redhat.com>
|
||||
Date: Tue, 14 May 2019 06:24:43 +0200
|
||||
Subject: kbd-state: fix autorepeat handling
|
||||
|
||||
When allowing multiple down-events in a row (key autorepeat) we can't
|
||||
use change_bit() any more to update the state, because autorepeat events
|
||||
don't change the key state. We have to explicitly use set_bit() and
|
||||
clear_bit() instead.
|
||||
|
||||
Cc: qemu-stable@nongnu.org
|
||||
Fixes: 35921860156e kbd-state: don't block auto-repeat events
|
||||
Buglink: https://bugs.launchpad.net/qemu/+bug/1828272
|
||||
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
||||
Message-id: 20190514042443.10735-1-kraxel@redhat.com
|
||||
Signed-off-by: Bruce Rogers <brogers@suse.com>
|
||||
---
|
||||
ui/kbd-state.c | 6 +++++-
|
||||
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/ui/kbd-state.c b/ui/kbd-state.c
|
||||
index f3ab2d7a66..1668d17dda 100644
|
||||
--- a/ui/kbd-state.c
|
||||
+++ b/ui/kbd-state.c
|
||||
@@ -59,7 +59,11 @@ void qkbd_state_key_event(QKbdState *kbd, QKeyCode qcode, bool down)
|
||||
}
|
||||
|
||||
/* update key and modifier state */
|
||||
- change_bit(qcode, kbd->keys);
|
||||
+ if (down) {
|
||||
+ set_bit(qcode, kbd->keys);
|
||||
+ } else {
|
||||
+ clear_bit(qcode, kbd->keys);
|
||||
+ }
|
||||
switch (qcode) {
|
||||
case Q_KEY_CODE_SHIFT:
|
||||
case Q_KEY_CODE_SHIFT_R:
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri May 17 19:05:11 UTC 2019 - Bruce Rogers <brogers@suse.com>
|
||||
|
||||
- Patch queue updated from git://github.com/openSUSE/qemu.git opensuse-4.0
|
||||
* Patches added:
|
||||
0045-kbd-state-fix-autorepeat-handling.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 15 19:36:50 UTC 2019 - Bruce Rogers <brogers@suse.com>
|
||||
|
||||
|
@ -78,6 +78,7 @@ Patch0041: 0041-qxl-avoid-unaligned-pointer-reads-w.patch
|
||||
Patch0042: 0042-libvhost-user-fix-Waddress-of-packe.patch
|
||||
Patch0043: 0043-target-i386-define-md-clear-bit.patch
|
||||
Patch0044: 0044-hw-intc-exynos4210_gic-provide-more.patch
|
||||
Patch0045: 0045-kbd-state-fix-autorepeat-handling.patch
|
||||
# Please do not add QEMU patches manually here.
|
||||
# Run update_git.sh to regenerate this queue.
|
||||
ExcludeArch: s390
|
||||
@ -152,6 +153,7 @@ syscall layer occurs on the native hardware and operating system.
|
||||
%patch0042 -p1
|
||||
%patch0043 -p1
|
||||
%patch0044 -p1
|
||||
%patch0045 -p1
|
||||
|
||||
%build
|
||||
%define _lto_cflags %{nil}
|
||||
|
@ -1,3 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri May 17 19:05:10 UTC 2019 - Bruce Rogers <brogers@suse.com>
|
||||
|
||||
- Fix regression in autorepeat key handling
|
||||
0045-kbd-state-fix-autorepeat-handling.patch
|
||||
- Patch queue updated from git://github.com/openSUSE/qemu.git opensuse-4.0
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 17 15:44:17 UTC 2019 - Andreas Schwab <schwab@suse.de>
|
||||
|
||||
- Fix file list
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 15 19:36:49 UTC 2019 - Bruce Rogers <brogers@suse.com>
|
||||
|
||||
|
@ -188,6 +188,7 @@ Patch0041: 0041-qxl-avoid-unaligned-pointer-reads-w.patch
|
||||
Patch0042: 0042-libvhost-user-fix-Waddress-of-packe.patch
|
||||
Patch0043: 0043-target-i386-define-md-clear-bit.patch
|
||||
Patch0044: 0044-hw-intc-exynos4210_gic-provide-more.patch
|
||||
Patch0045: 0045-kbd-state-fix-autorepeat-handling.patch
|
||||
# Please do not add QEMU patches manually here.
|
||||
# Run update_git.sh to regenerate this queue.
|
||||
|
||||
@ -999,6 +1000,7 @@ This package provides a service file for starting and stopping KSM.
|
||||
%patch0042 -p1
|
||||
%patch0043 -p1
|
||||
%patch0044 -p1
|
||||
%patch0045 -p1
|
||||
|
||||
pushd roms/seabios
|
||||
%patch1100 -p1
|
||||
@ -1605,6 +1607,7 @@ fi
|
||||
%ifarch s390x
|
||||
%_libexecdir/modules-load.d/kvm.conf
|
||||
%endif
|
||||
%endif
|
||||
%dir %_datadir/icons/hicolor
|
||||
%dir %_datadir/icons/hicolor/*/
|
||||
%dir %_datadir/icons/hicolor/*/apps
|
||||
@ -1619,7 +1622,6 @@ fi
|
||||
%_datadir/icons/hicolor/512x512/apps/qemu.png
|
||||
%_datadir/icons/hicolor/scalable/apps/qemu.svg
|
||||
%_datadir/applications/qemu.desktop
|
||||
%endif
|
||||
|
||||
%files x86
|
||||
%defattr(-, root, root)
|
||||
|
12
qemu.changes
12
qemu.changes
@ -1,3 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri May 17 19:05:10 UTC 2019 - Bruce Rogers <brogers@suse.com>
|
||||
|
||||
- Fix regression in autorepeat key handling
|
||||
0045-kbd-state-fix-autorepeat-handling.patch
|
||||
- Patch queue updated from git://github.com/openSUSE/qemu.git opensuse-4.0
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 17 15:44:17 UTC 2019 - Andreas Schwab <schwab@suse.de>
|
||||
|
||||
- Fix file list
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 15 19:36:49 UTC 2019 - Bruce Rogers <brogers@suse.com>
|
||||
|
||||
|
@ -188,6 +188,7 @@ Patch0041: 0041-qxl-avoid-unaligned-pointer-reads-w.patch
|
||||
Patch0042: 0042-libvhost-user-fix-Waddress-of-packe.patch
|
||||
Patch0043: 0043-target-i386-define-md-clear-bit.patch
|
||||
Patch0044: 0044-hw-intc-exynos4210_gic-provide-more.patch
|
||||
Patch0045: 0045-kbd-state-fix-autorepeat-handling.patch
|
||||
# Please do not add QEMU patches manually here.
|
||||
# Run update_git.sh to regenerate this queue.
|
||||
|
||||
@ -999,6 +1000,7 @@ This package provides a service file for starting and stopping KSM.
|
||||
%patch0042 -p1
|
||||
%patch0043 -p1
|
||||
%patch0044 -p1
|
||||
%patch0045 -p1
|
||||
|
||||
pushd roms/seabios
|
||||
%patch1100 -p1
|
||||
@ -1605,6 +1607,7 @@ fi
|
||||
%ifarch s390x
|
||||
%_libexecdir/modules-load.d/kvm.conf
|
||||
%endif
|
||||
%endif
|
||||
%dir %_datadir/icons/hicolor
|
||||
%dir %_datadir/icons/hicolor/*/
|
||||
%dir %_datadir/icons/hicolor/*/apps
|
||||
@ -1619,7 +1622,6 @@ fi
|
||||
%_datadir/icons/hicolor/512x512/apps/qemu.png
|
||||
%_datadir/icons/hicolor/scalable/apps/qemu.svg
|
||||
%_datadir/applications/qemu.desktop
|
||||
%endif
|
||||
|
||||
%files x86
|
||||
%defattr(-, root, root)
|
||||
|
@ -1516,6 +1516,7 @@ fi
|
||||
%ifarch s390x
|
||||
%_libexecdir/modules-load.d/kvm.conf
|
||||
%endif
|
||||
%endif
|
||||
%dir %_datadir/icons/hicolor
|
||||
%dir %_datadir/icons/hicolor/*/
|
||||
%dir %_datadir/icons/hicolor/*/apps
|
||||
@ -1530,7 +1531,6 @@ fi
|
||||
%_datadir/icons/hicolor/512x512/apps/qemu.png
|
||||
%_datadir/icons/hicolor/scalable/apps/qemu.svg
|
||||
%_datadir/applications/qemu.desktop
|
||||
%endif
|
||||
|
||||
%files x86
|
||||
%defattr(-, root, root)
|
||||
|
Loading…
Reference in New Issue
Block a user