diff --git a/proto.h b/proto.h index 729b7c3..2aa9458 100644 --- a/proto.h +++ b/proto.h @@ -71,7 +71,7 @@ void ensure_remote_modifiers(uint32 ev_time, key_translation tr); void reset_modifier_keys(unsigned int state); void rdp_send_scancode(uint32 time, uint16 flags, uint8 scancode); /* xwin.c */ -BOOL get_key_state(uint32 keysym, unsigned int state); +BOOL get_key_state(unsigned int state, uint32 keysym); BOOL ui_init(void); void ui_deinit(void); BOOL ui_create_window(void); diff --git a/xwin.c b/xwin.c index 0240311..90c2437 100644 --- a/xwin.c +++ b/xwin.c @@ -184,7 +184,7 @@ translate_colour(uint32 colour) } BOOL -get_key_state(uint32 keysym, unsigned int state) +get_key_state(unsigned int state, uint32 keysym) { int modifierpos, key, keysymMask = 0; int offset;