23 |
#include <unistd.h> |
#include <unistd.h> |
24 |
#include <time.h> |
#include <time.h> |
25 |
#include <errno.h> |
#include <errno.h> |
26 |
|
#include <strings.h> |
27 |
#include "rdesktop.h" |
#include "rdesktop.h" |
28 |
#include "xproto.h" |
#include "xproto.h" |
29 |
|
|
64 |
|
|
65 |
/* software backing store */ |
/* software backing store */ |
66 |
static BOOL g_ownbackstore; |
static BOOL g_ownbackstore; |
67 |
static Pixmap g_backstore = NULL; |
static Pixmap g_backstore = 0; |
68 |
|
|
69 |
/* Moving in single app mode */ |
/* Moving in single app mode */ |
70 |
static BOOL g_moving_wnd; |
static BOOL g_moving_wnd; |
895 |
if (g_gc == NULL) |
if (g_gc == NULL) |
896 |
g_gc = XCreateGC(g_display, g_wnd, 0, NULL); |
g_gc = XCreateGC(g_display, g_wnd, 0, NULL); |
897 |
|
|
898 |
if ((g_ownbackstore) && (g_backstore == NULL)) |
if ((g_ownbackstore) && (g_backstore == 0)) |
899 |
{ |
{ |
900 |
g_backstore = XCreatePixmap(g_display, g_wnd, g_width, g_height, g_depth); |
g_backstore = XCreatePixmap(g_display, g_wnd, g_width, g_height, g_depth); |
901 |
|
|
1312 |
error("select: %s\n", strerror(errno)); |
error("select: %s\n", strerror(errno)); |
1313 |
|
|
1314 |
case 0: |
case 0: |
1315 |
s_timeout = True; |
/* TODO: if tv.tv_sec just times out |
1316 |
rdpdr_check_fds(&rfds, &wfds, (BOOL) True); |
* we will segfault. |
1317 |
|
* FIXME: |
1318 |
|
*/ |
1319 |
|
//s_timeout = True; |
1320 |
|
//rdpdr_check_fds(&rfds, &wfds, (BOOL) True); |
1321 |
continue; |
continue; |
1322 |
} |
} |
1323 |
|
|