/[rdesktop]/sourceforge.net/trunk/rdesktop/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 /sourceforge.net/trunk/rdesktop/xkeymap.c

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

revision 552 by astrand, Mon Dec 8 12:01:25 2003 UTC revision 706 by astrand, Tue Jun 1 08:06:02 2004 UTC
# Line 323  handle_special_keys(uint32 keysym, unsig Line 323  handle_special_keys(uint32 keysym, unsig
323                          }                          }
324                          /* No release sequence */                          /* No release sequence */
325                          return True;                          return True;
326                            break;
327    
328                  case XK_Pause:                  case XK_Pause:
329                          /* According to MS Keyboard Scan Code                          /* According to MS Keyboard Scan Code
# Line 349  handle_special_keys(uint32 keysym, unsig Line 350  handle_special_keys(uint32 keysym, unsig
350                                                 0x1d, 0);                                                 0x1d, 0);
351                          }                          }
352                          return True;                          return True;
353                            break;
354    
355                  case XK_Meta_L: /* Windows keys */                  case XK_Meta_L: /* Windows keys */
356                  case XK_Super_L:                  case XK_Super_L:
357                  case XK_Hyper_L:                  case XK_Hyper_L:
358                          send_winkey(ev_time, pressed, True);                          send_winkey(ev_time, pressed, True);
359                          return True;                          return True;
360                            break;
361    
362                  case XK_Meta_R:                  case XK_Meta_R:
363                  case XK_Super_R:                  case XK_Super_R:
364                  case XK_Hyper_R:                  case XK_Hyper_R:
365                          send_winkey(ev_time, pressed, False);                          send_winkey(ev_time, pressed, False);
366                          return True;                          return True;
367                            break;
368    
369                  case XK_space:                  case XK_space:
370                          /* Prevent access to the Windows system menu in single app mode */                          /* Prevent access to the Windows system menu in single app mode */
371                          if (g_win_button_size                          if (g_win_button_size
372                              && (get_key_state(state, XK_Alt_L) || get_key_state(state, XK_Alt_R)))                              && (get_key_state(state, XK_Alt_L) || get_key_state(state, XK_Alt_R)))
373                                  return True;                                  return True;
374                            break;
375                  case XK_Num_Lock:                  case XK_Num_Lock:
376                          /* FIXME: We might want to do RDP_INPUT_SYNCHRONIZE here, if g_numlock_sync */                          /* FIXME: We might want to do RDP_INPUT_SYNCHRONIZE here, if g_numlock_sync */
377                          if (!g_numlock_sync)                          if (!g_numlock_sync)
378                                  /* Inhibit */                                  /* Inhibit */
379                                  return True;                                  return True;
380                            break;
381    
382          }          }
383          return False;          return False;
# Line 597  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 647  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)
660                && !get_key_state(state, XK_ISO_Level3_Shift))
661                  rdp_send_scancode(ev_time, RDP_KEYRELEASE, SCANCODE_CHAR_RALT);                  rdp_send_scancode(ev_time, RDP_KEYRELEASE, SCANCODE_CHAR_RALT);
662    
663          reset_winkey(ev_time);          reset_winkey(ev_time);

Legend:
Removed from v.552  
changed lines
  Added in v.706

  ViewVC Help
Powered by ViewVC 1.1.26