summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authordscho <dscho>2002-12-20 10:54:29 +0000
committerdscho <dscho>2002-12-20 10:54:29 +0000
commitba2029e998a400f01719cd661a7acc35ae5cc427 (patch)
treea3a68e3a3f7355eb47696278e834bf49b50cf058 /contrib
parent43536e2ae1a434b5801c2355dd3e22ae8d4c16bd (diff)
downloadlibvncserver-ba2029e998a400f01719cd661a7acc35ae5cc427.zip
libvncserver-ba2029e998a400f01719cd661a7acc35ae5cc427.tar.gz
include commented debug functionality
Diffstat (limited to 'contrib')
-rw-r--r--contrib/x11vnc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/x11vnc.c b/contrib/x11vnc.c
index 59ea8cb..4696126 100644
--- a/contrib/x11vnc.c
+++ b/contrib/x11vnc.c
@@ -263,6 +263,8 @@ void DebugXTestFakeKeyEvent(Display* dpy, KeyCode keysym, Bool down, time_t cur_
XTestFakeKeyEvent(dpy,keysym,down,cur_time);
}
+/* #define XTestFakeKeyEvent DebugXTestFakeKeyEvent */
+
void tweak_mod(signed char mod, Bool down) {
Bool is_shift = mod_state & (LEFTSHIFT|RIGHTSHIFT);
X_Bool dn = (X_Bool) down;
@@ -337,6 +339,9 @@ static void modifier_tweak_keyboard(Bool down, KeySym keysym, rfbClientPtr clien
static void keyboard(Bool down, KeySym keysym, rfbClientPtr client) {
KeyCode k;
+ /* fprintf(stderr,"keyboard(%s,%s(0x%x),client)\n",
+ down?"down":"up",XKeysymToString(keysym),(int)keysym); */
+
if (view_only) {
return;
}
OpenPOWER on IntegriCloud