/[rdesktop]/sourceforge.net/branches/seamlessrdp-branch/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/branches/seamlessrdp-branch/rdesktop/xwin.c

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

revision 450 by jsorg71, Wed Aug 27 22:51:33 2003 UTC revision 456 by astrand, Sun Aug 31 20:01:12 2003 UTC
# Line 656  ui_create_window(void) Line 656  ui_create_window(void)
656          attribs.override_redirect = g_fullscreen;          attribs.override_redirect = g_fullscreen;
657    
658          g_wnd = XCreateWindow(g_display, RootWindowOfScreen(g_screen), 0, 0, wndwidth, wndheight,          g_wnd = XCreateWindow(g_display, RootWindowOfScreen(g_screen), 0, 0, wndwidth, wndheight,
659                              0, CopyFromParent, InputOutput, CopyFromParent,                                0, CopyFromParent, InputOutput, CopyFromParent,
660                              CWBackPixel | CWBackingStore | CWOverrideRedirect, &attribs);                                CWBackPixel | CWBackingStore | CWOverrideRedirect, &attribs);
661    
662          XStoreName(g_display, g_wnd, g_title);          XStoreName(g_display, g_wnd, g_title);
663    
# Line 697  ui_create_window(void) Line 697  ui_create_window(void)
697          if (g_IM != NULL)          if (g_IM != NULL)
698          {          {
699                  g_IC = XCreateIC(g_IM, XNInputStyle, (XIMPreeditNothing | XIMStatusNothing),                  g_IC = XCreateIC(g_IM, XNInputStyle, (XIMPreeditNothing | XIMStatusNothing),
700                                 XNClientWindow, g_wnd, XNFocusWindow, g_wnd, NULL);                                   XNClientWindow, g_wnd, XNFocusWindow, g_wnd, NULL);
701    
702                  if ((g_IC != NULL)                  if ((g_IC != NULL)
703                      && (XGetICValues(g_IC, XNFilterEvents, &ic_input_mask, NULL) == NULL))                      && (XGetICValues(g_IC, XNFilterEvents, &ic_input_mask, NULL) == NULL))
# Line 885  xwin_process_events(void) Line 885  xwin_process_events(void)
885                                                  /* The close button, continue */                                                  /* The close button, continue */
886                                                  ;                                                  ;
887                                          }                                          }
888                                          else if (xevent.xbutton.x >= g_width - g_win_button_size * 2)                                          else if (xevent.xbutton.x >=
889                                                     g_width - g_win_button_size * 2)
890                                          {                                          {
891                                                  /* The maximize/restore button. Do not send to                                                  /* The maximize/restore button. Do not send to
892                                                     server.  It might be a good idea to change the                                                     server.  It might be a good idea to change the
# Line 893  xwin_process_events(void) Line 894  xwin_process_events(void)
894                                                     that rdesktop inhibited this click */                                                     that rdesktop inhibited this click */
895                                                  break;                                                  break;
896                                          }                                          }
897                                          else if (xevent.xbutton.x >= g_width - g_win_button_size * 3)                                          else if (xevent.xbutton.x >=
898                                                     g_width - g_win_button_size * 3)
899                                          {                                          {
900                                                  /* The minimize button. Iconify window. */                                                  /* The minimize button. Iconify window. */
901                                                  XIconifyWindow(g_display, g_wnd,                                                  XIconifyWindow(g_display, g_wnd,

Legend:
Removed from v.450  
changed lines
  Added in v.456

  ViewVC Help
Powered by ViewVC 1.1.26