/[rdesktop]/sourceforge.net/trunk/rdesktop/xwin.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/xwin.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 763 by astrand, Wed Sep 8 07:19:20 2004 UTC revision 800 by stargo, Thu Nov 18 11:18:49 2004 UTC
# Line 30  Line 30 
30    
31  extern int g_width;  extern int g_width;
32  extern int g_height;  extern int g_height;
33    extern int g_xpos;
34    extern int g_ypos;
35  extern BOOL g_sendmotion;  extern BOOL g_sendmotion;
36  extern BOOL g_fullscreen;  extern BOOL g_fullscreen;
37  extern BOOL g_grab_keyboard;  extern BOOL g_grab_keyboard;
# Line 946  BOOL Line 948  BOOL
948  ui_create_window(void)  ui_create_window(void)
949  {  {
950          uint8 null_pointer_mask[1] = { 0x80 };          uint8 null_pointer_mask[1] = { 0x80 };
951          uint8 null_pointer_data[9] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };          uint8 null_pointer_data[24] = { 0x00 };
952    
953          XSetWindowAttributes attribs;          XSetWindowAttributes attribs;
954          XClassHint *classhints;          XClassHint *classhints;
955          XSizeHints *sizehints;          XSizeHints *sizehints;
# Line 963  ui_create_window(void) Line 966  ui_create_window(void)
966          attribs.override_redirect = g_fullscreen;          attribs.override_redirect = g_fullscreen;
967          attribs.colormap = g_xcolmap;          attribs.colormap = g_xcolmap;
968    
969          g_wnd = XCreateWindow(g_display, RootWindowOfScreen(g_screen), 0, 0, wndwidth, wndheight,          g_wnd = XCreateWindow(g_display, RootWindowOfScreen(g_screen), g_xpos, g_ypos, wndwidth, wndheight,
970                                0, g_depth, InputOutput, g_visual,                                0, g_depth, InputOutput, g_visual,
971                                CWBackPixel | CWBackingStore | CWOverrideRedirect |                                CWBackPixel | CWBackingStore | CWOverrideRedirect |
972                                CWColormap | CWBorderPixel, &attribs);                                CWColormap | CWBorderPixel, &attribs);
# Line 1434  ui_select(int rdp_socket) Line 1437  ui_select(int rdp_socket)
1437                                  error("select: %s\n", strerror(errno));                                  error("select: %s\n", strerror(errno));
1438    
1439                          case 0:                          case 0:
1440                                  /* TODO: if tv.tv_sec just times out                                  /* Abort serial read calls */
1441                                   * we will segfault.                                  if (s_timeout)
1442                                   * FIXME:                                          rdpdr_check_fds(&rfds, &wfds, (BOOL) True);
                                  */  
                                 //s_timeout = True;  
                                 //rdpdr_check_fds(&rfds, &wfds, (BOOL) True);  
1443                                  continue;                                  continue;
1444                  }                  }
1445    

Legend:
Removed from v.763  
changed lines
  Added in v.800

  ViewVC Help
Powered by ViewVC 1.1.26