|
|
@ -263,6 +263,8 @@ void DebugXTestFakeKeyEvent(Display* dpy, KeyCode keysym, Bool down, time_t cur_
|
|
|
|
XTestFakeKeyEvent(dpy,keysym,down,cur_time);
|
|
|
|
XTestFakeKeyEvent(dpy,keysym,down,cur_time);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* #define XTestFakeKeyEvent DebugXTestFakeKeyEvent */
|
|
|
|
|
|
|
|
|
|
|
|
void tweak_mod(signed char mod, Bool down) {
|
|
|
|
void tweak_mod(signed char mod, Bool down) {
|
|
|
|
Bool is_shift = mod_state & (LEFTSHIFT|RIGHTSHIFT);
|
|
|
|
Bool is_shift = mod_state & (LEFTSHIFT|RIGHTSHIFT);
|
|
|
|
X_Bool dn = (X_Bool) down;
|
|
|
|
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) {
|
|
|
|
static void keyboard(Bool down, KeySym keysym, rfbClientPtr client) {
|
|
|
|
KeyCode k;
|
|
|
|
KeyCode k;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* fprintf(stderr,"keyboard(%s,%s(0x%x),client)\n",
|
|
|
|
|
|
|
|
down?"down":"up",XKeysymToString(keysym),(int)keysym); */
|
|
|
|
|
|
|
|
|
|
|
|
if (view_only) {
|
|
|
|
if (view_only) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|