aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2017-03-11 00:07:13 +0100
committerUlrich Sibiller <uli42@gmx.de>2017-03-13 21:24:52 +0100
commit8f0d885cd21f90722c19ad316623c57db7012fde (patch)
tree5267003f63021feb43a11ed19f5c3e84c3ddf21e /nx-X11/programs/Xserver/hw/nxagent
parentb39ec4c45abac55bf0cb3faafb5a7ffc2adfa758 (diff)
downloadnx-libs-8f0d885cd21f90722c19ad316623c57db7012fde.tar.gz
nx-libs-8f0d885cd21f90722c19ad316623c57db7012fde.tar.bz2
nx-libs-8f0d885cd21f90722c19ad316623c57db7012fde.zip
Keystroke.c: print keystroke name in TEST mode
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Keystroke.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Keystroke.c b/nx-X11/programs/Xserver/hw/nxagent/Keystroke.c
index ce74dd82c..6cb28e938 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Keystroke.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Keystroke.c
@@ -421,8 +421,12 @@ Bool nxagentCheckSpecialKeystroke(XKeyEvent *X, enum HandleEventResult *result)
*result = doNothing;
#ifdef TEST
- fprintf(stderr, "nxagentCheckSpecialKeystroke: got code %x - state %x - stroke %d\n",
- X -> keycode, X -> state, stroke);
+ if (stroke != KEYSTROKE_NOTHING && stroke != KEYSTROKE_END_MARKER)
+ fprintf(stderr, "nxagentCheckSpecialKeystroke: got code %x - state %x - stroke %d (%s)\n",
+ X -> keycode, X -> state, stroke, nxagentSpecialKeystrokeNames[stroke]);
+ else
+ fprintf(stderr, "nxagentCheckSpecialKeystroke: got code %x - state %x - stroke %d (unused)\n",
+ X -> keycode, X -> state, stroke);
#endif
if (stroke == KEYSTROKE_NOTHING)