Source-Changes-HG archive

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

[xsrc/trunk]: xsrc/external/mit/xf86-input-keyboard/dist/src Handle DEVICE_AB...



details:   https://anonhg.NetBSD.org/xsrc/rev/e865df3d801e
branches:  trunk
changeset: 10807:e865df3d801e
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Oct 02 04:28:54 2021 +0000

description:
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 43abd5afa15d -r e865df3d801e external/mit/xf86-input-keyboard/dist/src/kbd.c
--- a/external/mit/xf86-input-keyboard/dist/src/kbd.c   Fri Oct 01 07:14:37 2021 +0000
+++ b/external/mit/xf86-input-keyboard/dist/src/kbd.c   Sat Oct 02 04:28:54 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