diff options
author | jsorg71 <jsorg71> | 2009-08-12 07:14:20 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2009-08-12 07:14:20 +0000 |
commit | 47f6623d8e7f56e9bde8a32f283de2f5ec68df5b (patch) | |
tree | 90ca98977dc5dc7f881ad7c6acae6f3985822270 | |
parent | 1875c807949749fa3529e54006261788b0727245 (diff) | |
download | xrdp-proprietary-47f6623d8e7f56e9bde8a32f283de2f5ec68df5b.tar.gz xrdp-proprietary-47f6623d8e7f56e9bde8a32f283de2f5ec68df5b.zip |
change the order of params for keydown/up to be more backward compatible
-rw-r--r-- | rdp/rdp.c | 4 | ||||
-rw-r--r-- | vnc/vnc.c | 2 | ||||
-rw-r--r-- | xrdp/xrdp_wm.c | 4 |
3 files changed, 5 insertions, 5 deletions
@@ -82,11 +82,11 @@ lib_mod_event(struct mod* mod, int msg, long param1, long param2, { case 15: rdp_rdp_send_input(mod->rdp_layer, s, 0, RDP_INPUT_SCANCODE, - param2, param1, 0); + param4, param3, 0); break; case 16: rdp_rdp_send_input(mod->rdp_layer, s, 0, RDP_INPUT_SCANCODE, - param2, param1, 0); + param4, param3, 0); break; case 17: rdp_rdp_send_input(mod->rdp_layer, s, 0, RDP_INPUT_SYNCHRONIZE, @@ -241,7 +241,7 @@ lib_mod_event(struct vnc* v, int msg, long param1, long param2, } else if ((msg >= 15) && (msg <= 16)) /* key events */ { - key = param3; + key = param2; if (key > 0) { init_stream(s, 8192); diff --git a/xrdp/xrdp_wm.c b/xrdp/xrdp_wm.c index ed55efd3..8a11785c 100644 --- a/xrdp/xrdp_wm.c +++ b/xrdp/xrdp_wm.c @@ -1131,8 +1131,8 @@ xrdp_wm_key(struct xrdp_wm* self, int device_flags, int scan_code) &(self->keymap)); if (ki != 0) { - self->mm->mod->mod_event(self->mm->mod, msg, scan_code, - device_flags, ki->sym, ki->chr); + self->mm->mod->mod_event(self->mm->mod, msg, ki->chr, ki->sym, + scan_code, device_flags); } } } |