/[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 1089 by astrand, Fri Mar 10 08:50:43 2006 UTC revision 1101 by astrand, Fri Mar 10 12:56:38 2006 UTC
# Line 1731  xwin_process_events(void) Line 1731  xwin_process_events(void)
1731          char str[256];          char str[256];
1732          Status status;          Status status;
1733          int events = 0;          int events = 0;
1734            seamless_window *sw;
1735    
1736          while ((XPending(g_display) > 0) && events++ < 20)          while ((XPending(g_display) > 0) && events++ < 20)
1737          {          {
# Line 1893  xwin_process_events(void) Line 1894  xwin_process_events(void)
1894                                  }                                  }
1895                                  else                                  else
1896                                  {                                  {
                                         seamless_window *sw;  
1897                                          sw = seamless_get_window_by_wnd(xevent.xexpose.window);                                          sw = seamless_get_window_by_wnd(xevent.xexpose.window);
1898                                          if (sw)                                          if (sw)
1899                                                  XCopyArea(g_display, g_backstore,                                                  XCopyArea(g_display, g_backstore,
# Line 2987  ui_seamless_toggle() Line 2987  ui_seamless_toggle()
2987  }  }
2988    
2989  void  void
2990  ui_seamless_create_window(unsigned long id, unsigned long flags)  ui_seamless_create_window(unsigned long id, unsigned long parent, unsigned long flags)
2991  {  {
2992          Window wnd;          Window wnd;
2993          XSetWindowAttributes attribs;          XSetWindowAttributes attribs;
2994          XClassHint *classhints;          XClassHint *classhints;
2995          long input_mask;          long input_mask;
2996          seamless_window *sw;          seamless_window *sw, *sw_parent;
2997    
2998          get_window_attribs(&attribs);          get_window_attribs(&attribs);
2999    
# Line 3019  ui_seamless_create_window(unsigned long Line 3019  ui_seamless_create_window(unsigned long
3019                  XFree(classhints);                  XFree(classhints);
3020          }          }
3021    
3022            /* Set WM_TRANSIENT_FOR, if necessary */
3023            sw_parent = seamless_get_window_by_id(parent);
3024            if (sw_parent)
3025                    XSetTransientForHint(g_display, wnd, sw_parent->wnd);
3026            else
3027                    warning("ui_seamless_create_window: No parent window 0x%lx\n", parent);
3028    
3029          /* FIXME: Support for Input Context:s */          /* FIXME: Support for Input Context:s */
3030    
3031          get_input_mask(&input_mask);          get_input_mask(&input_mask);
# Line 3095  ui_seamless_move_window(unsigned long id Line 3102  ui_seamless_move_window(unsigned long id
3102    
3103    
3104  void  void
3105  ui_seamless_settitle(unsigned long id, const char *title)  ui_seamless_settitle(unsigned long id, const char *title, unsigned long flags)
3106  {  {
3107          seamless_window *sw;          seamless_window *sw;
3108    

Legend:
Removed from v.1089  
changed lines
  Added in v.1101

  ViewVC Help
Powered by ViewVC 1.1.26