18 |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 |
*/ |
*/ |
20 |
|
|
21 |
|
#ifdef RDP2VNC |
22 |
|
#include "vnc/x11stubs.h" |
23 |
|
#else |
24 |
#include <X11/Xlib.h> |
#include <X11/Xlib.h> |
25 |
#define XK_MISCELLANY |
#include <X11/keysym.h> |
26 |
#include <X11/keysymdef.h> |
#endif |
27 |
|
|
28 |
#include <ctype.h> |
#include <ctype.h> |
29 |
#include <limits.h> |
#include <limits.h> |
30 |
#include <time.h> |
#include <time.h> |
38 |
extern Display *display; |
extern Display *display; |
39 |
extern char keymapname[16]; |
extern char keymapname[16]; |
40 |
extern int keylayout; |
extern int keylayout; |
41 |
|
extern int win_button_size; |
42 |
extern BOOL enable_compose; |
extern BOOL enable_compose; |
43 |
|
|
44 |
static BOOL keymap_loaded; |
static BOOL keymap_loaded; |
56 |
keysym = XStringToKeysym(keyname); |
keysym = XStringToKeysym(keyname); |
57 |
if (keysym == NoSymbol) |
if (keysym == NoSymbol) |
58 |
{ |
{ |
59 |
DEBUG_KBD(("Bad keysym \"%s\" in keymap %s (ignoring)\n", keyname, mapname)); |
DEBUG_KBD(("Bad keysym \"%s\" in keymap %s (ignoring)\n", keyname, mapname)); |
60 |
return; |
return; |
61 |
} |
} |
62 |
|
|
312 |
rdp_send_scancode(ev_time, RDP_KEYRELEASE, SCANCODE_CHAR_LCTRL); |
rdp_send_scancode(ev_time, RDP_KEYRELEASE, SCANCODE_CHAR_LCTRL); |
313 |
} |
} |
314 |
return True; |
return True; |
315 |
|
|
316 |
|
case XK_space: |
317 |
|
/* Prevent access to the Windows system menu in single app mode */ |
318 |
|
if (win_button_size |
319 |
|
&& (get_key_state(state, XK_Alt_L) || get_key_state(state, XK_Alt_R))) |
320 |
|
return True; |
321 |
|
|
322 |
} |
} |
323 |
return False; |
return False; |
324 |
} |
} |