summaryrefslogtreecommitdiffstats
path: root/x11vnc.c
diff options
context:
space:
mode:
authordscho <dscho>2001-11-27 16:06:02 +0000
committerdscho <dscho>2001-11-27 16:06:02 +0000
commitd6717523becade3ab63d742cbb4f51029a571b6e (patch)
treee3e72615e53d385dc551de8c807ef39769d90d40 /x11vnc.c
parent9cabed90fe502e35a53b7102f3cb69f07afc4778 (diff)
downloadlibtdevnc-d6717523becade3ab63d742cbb4f51029a571b6e.tar.gz
libtdevnc-d6717523becade3ab63d742cbb4f51029a571b6e.zip
fixed dumb XTestFakeInput bug
Diffstat (limited to 'x11vnc.c')
-rw-r--r--x11vnc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/x11vnc.c b/x11vnc.c
index cfdb615..7b4f9d6 100644
--- a/x11vnc.c
+++ b/x11vnc.c
@@ -101,18 +101,18 @@ void keyboard(Bool down,KeySym keySym,rfbClientPtr cl)
if(keySym>=' ' && keySym<0x100) {
KeyCode k;
- /* if(down)
- tweakModifiers(modifiers[keySym],True); */
- tweakModifiers(modifiers[keySym],down);
- XTestFakeKeyEvent(dpy,XK_Shift_R,True,CurrentTime);
- k = XKeysymToKeycode( dpy,keySym );
+ if(down)
+ tweakModifiers(modifiers[keySym],True);
+ //tweakModifiers(modifiers[keySym],down);
+ //k = XKeysymToKeycode( dpy,keySym );
+ k = keycodes[keySym];
if(k!=NoSymbol) {
XTestFakeKeyEvent(dpy,k,down,CurrentTime);
gotInput = TRUE;
}
/*XTestFakeKeyEvent(dpy,keycodes[keySym],down,CurrentTime);*/
- /*if(down)
- tweakModifiers(modifiers[keySym],False);*/
+ if(down)
+ tweakModifiers(modifiers[keySym],False);
gotInput = TRUE;
} else {
KeyCode k = XKeysymToKeycode( dpy,keySym );