20 |
|
|
21 |
#include <X11/Xlib.h> |
#include <X11/Xlib.h> |
22 |
#define XK_MISCELLANY |
#define XK_MISCELLANY |
23 |
#include <X11/keysymdef.h> |
#include <X11/keysym.h> |
24 |
#include <ctype.h> |
#include <ctype.h> |
25 |
#include <limits.h> |
#include <limits.h> |
26 |
#include <time.h> |
#include <time.h> |
34 |
extern Display *display; |
extern Display *display; |
35 |
extern char keymapname[16]; |
extern char keymapname[16]; |
36 |
extern int keylayout; |
extern int keylayout; |
37 |
|
extern int win_button_size; |
38 |
extern BOOL enable_compose; |
extern BOOL enable_compose; |
39 |
|
|
40 |
static BOOL keymap_loaded; |
static BOOL keymap_loaded; |
308 |
rdp_send_scancode(ev_time, RDP_KEYRELEASE, SCANCODE_CHAR_LCTRL); |
rdp_send_scancode(ev_time, RDP_KEYRELEASE, SCANCODE_CHAR_LCTRL); |
309 |
} |
} |
310 |
return True; |
return True; |
311 |
|
|
312 |
|
case XK_space: |
313 |
|
/* Prevent access to the Windows system menu in single app mode */ |
314 |
|
if (win_button_size |
315 |
|
&& (get_key_state(state, XK_Alt_L) || get_key_state(state, XK_Alt_R))) |
316 |
|
return True; |
317 |
|
|
318 |
} |
} |
319 |
return False; |
return False; |
320 |
} |
} |