946 |
ui_create_window(void) |
ui_create_window(void) |
947 |
{ |
{ |
948 |
uint8 null_pointer_mask[1] = { 0x80 }; |
uint8 null_pointer_mask[1] = { 0x80 }; |
949 |
uint8 null_pointer_data[4] = { 0x00, 0x00, 0x00, 0x00 }; |
uint8 null_pointer_data[24] = { 0x00 }; |
950 |
|
|
951 |
XSetWindowAttributes attribs; |
XSetWindowAttributes attribs; |
952 |
XClassHint *classhints; |
XClassHint *classhints; |
953 |
XSizeHints *sizehints; |
XSizeHints *sizehints; |
1435 |
error("select: %s\n", strerror(errno)); |
error("select: %s\n", strerror(errno)); |
1436 |
|
|
1437 |
case 0: |
case 0: |
1438 |
/* TODO: if tv.tv_sec just times out |
/* Abort serial read calls */ |
1439 |
* we will segfault. |
if (s_timeout) |
1440 |
* FIXME: |
rdpdr_check_fds(&rfds, &wfds, (BOOL) True); |
|
*/ |
|
|
//s_timeout = True; |
|
|
//rdpdr_check_fds(&rfds, &wfds, (BOOL) True); |
|
1441 |
continue; |
continue; |
1442 |
} |
} |
1443 |
|
|
1444 |
rdpdr_check_fds(&rfds, &wfds, (BOOL) False); |
rdpdr_check_fds(&rfds, &wfds, (BOOL) False); |
1445 |
|
|
1446 |
|
if (FD_ISSET(rdp_socket, &rfds)) |
1447 |
|
return 1; |
1448 |
|
|
1449 |
#ifdef WITH_RDPSND |
#ifdef WITH_RDPSND |
1450 |
if (g_dsp_busy && FD_ISSET(g_dsp_fd, &wfds)) |
if (g_dsp_busy && FD_ISSET(g_dsp_fd, &wfds)) |
1451 |
wave_out_play(); |
wave_out_play(); |
1452 |
#endif |
#endif |
|
|
|
|
if (FD_ISSET(rdp_socket, &rfds)) |
|
|
return 1; |
|
1453 |
} |
} |
1454 |
} |
} |
1455 |
|
|