Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[xsrc/netbsd-9]: xsrc/external/mit/xf86-input-keyboard/dist/src Pull up follo...



details:   https://anonhg.NetBSD.org/xsrc/rev/24f43736a975
branches:  netbsd-9
changeset: 10808:24f43736a975
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Oct 04 15:42:40 2021 +0000

description:
Pull up following revision(s) (requested by tsutsui in ticket #1354):

        external/mit/xf86-input-keyboard/dist/src/kbd.c: revision 1.8

Handle DEVICE_ABORT to restore the original keyboard state after crash.

No particular comment in PR xsrc/56415.

diffstat:

 external/mit/xf86-input-keyboard/dist/src/kbd.c |  9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r a4d3a66d39b3 -r 24f43736a975 external/mit/xf86-input-keyboard/dist/src/kbd.c
--- a/external/mit/xf86-input-keyboard/dist/src/kbd.c   Wed May 19 17:06:32 2021 +0000
+++ b/external/mit/xf86-input-keyboard/dist/src/kbd.c   Mon Oct 04 15:42:40 2021 +0000
@@ -384,6 +384,15 @@
     device->public.on = FALSE;
     break;
 
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) * 100 + GET_ABI_MINOR(ABI_XINPUT_VERSION) >= 1901
+  case DEVICE_ABORT:
+    /*
+     * Restore original keyboard state even on crash.
+     */
+    pKbd->KbdOff(pInfo, what);
+    break;
+#endif
+
   default:
     return BadValue;
   }



Home | Main Index | Thread Index | Old Index