34 |
extern char g_title[]; |
extern char g_title[]; |
35 |
extern int g_server_bpp; |
extern int g_server_bpp; |
36 |
extern int g_win_button_size; |
extern int g_win_button_size; |
|
BOOL g_enable_compose = False; |
|
|
BOOL g_focused; |
|
|
BOOL g_mouse_in_wnd; |
|
37 |
|
|
38 |
Display *g_display; |
Display *g_display; |
39 |
Time g_last_gesturetime; |
Time g_last_gesturetime; |
40 |
static int g_x_socket; |
static int g_x_socket; |
41 |
static Screen *g_screen; |
static Screen *g_screen; |
42 |
Window g_wnd; |
Window g_wnd; |
43 |
|
BOOL g_enable_compose = False; |
44 |
static GC g_gc; |
static GC g_gc; |
45 |
static Visual *g_visual; |
static Visual *g_visual; |
46 |
static int g_depth; |
static int g_depth; |
50 |
static XModifierKeymap *g_mod_map; |
static XModifierKeymap *g_mod_map; |
51 |
static Cursor g_current_cursor; |
static Cursor g_current_cursor; |
52 |
static Atom g_protocol_atom, g_kill_atom; |
static Atom g_protocol_atom, g_kill_atom; |
53 |
|
static BOOL g_focused; |
54 |
|
static BOOL g_mouse_in_wnd; |
55 |
|
|
56 |
/* endianness */ |
/* endianness */ |
57 |
static BOOL g_host_be; |
static BOOL g_host_be; |
1085 |
int n = (rdp_socket > g_x_socket) ? rdp_socket + 1 : g_x_socket + 1; |
int n = (rdp_socket > g_x_socket) ? rdp_socket + 1 : g_x_socket + 1; |
1086 |
fd_set rfds, wfds; |
fd_set rfds, wfds; |
1087 |
|
|
|
FD_ZERO(&rfds); |
|
|
|
|
1088 |
while (True) |
while (True) |
1089 |
{ |
{ |
1090 |
/* Process any events already waiting */ |
/* Process any events already waiting */ |
1119 |
return 1; |
return 1; |
1120 |
|
|
1121 |
#ifdef WITH_RDPSND |
#ifdef WITH_RDPSND |
1122 |
if (FD_ISSET(g_dsp_fd, &wfds)) |
if (g_dsp_busy && FD_ISSET(g_dsp_fd, &wfds)) |
1123 |
wave_out_play(); |
wave_out_play(); |
1124 |
#endif |
#endif |
1125 |
} |
} |