/[rdesktop]/jpeg/rdesktop/trunk/xkeymap.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /jpeg/rdesktop/trunk/xkeymap.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 553 by astrand, Mon Dec 8 15:28:24 2003 UTC revision 705 by astrand, Tue Jun 1 08:00:58 2004 UTC
# Line 602  ensure_remote_modifiers(uint32 ev_time, Line 602  ensure_remote_modifiers(uint32 ev_time,
602  unsigned int  unsigned int
603  read_keyboard_state()  read_keyboard_state()
604  {  {
605    #ifdef RDP2VNC
606            return 0;
607    #else
608          unsigned int state;          unsigned int state;
609          Window wdummy;          Window wdummy;
610          int dummy;          int dummy;
611    
612          XQueryPointer(g_display, g_wnd, &wdummy, &wdummy, &dummy, &dummy, &dummy, &dummy, &state);          XQueryPointer(g_display, g_wnd, &wdummy, &wdummy, &dummy, &dummy, &dummy, &dummy, &state);
613          return state;          return state;
614    #endif
615  }  }
616    
617    
# Line 652  reset_modifier_keys() Line 656  reset_modifier_keys()
656                  rdp_send_scancode(ev_time, RDP_KEYRELEASE, SCANCODE_CHAR_LALT);                  rdp_send_scancode(ev_time, RDP_KEYRELEASE, SCANCODE_CHAR_LALT);
657    
658          if (MASK_HAS_BITS(remote_modifier_state, MapRightAltMask) &&          if (MASK_HAS_BITS(remote_modifier_state, MapRightAltMask) &&
659              !get_key_state(state, XK_Alt_R) && !get_key_state(state, XK_Mode_switch))              !get_key_state(state, XK_Alt_R) && !get_key_state(state, XK_Mode_switch) && !get_key_state(state, XK_ISO_Level3_Shift))
660                  rdp_send_scancode(ev_time, RDP_KEYRELEASE, SCANCODE_CHAR_RALT);                  rdp_send_scancode(ev_time, RDP_KEYRELEASE, SCANCODE_CHAR_RALT);
661    
662          reset_winkey(ev_time);          reset_winkey(ev_time);

Legend:
Removed from v.553  
changed lines
  Added in v.705

  ViewVC Help
Powered by ViewVC 1.1.26