/[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 1143 by ossman_, Thu Mar 16 08:41:53 2006 UTC revision 1144 by ossman_, Thu Mar 16 10:14:18 2006 UTC
# Line 55  typedef struct _seamless_window Line 55  typedef struct _seamless_window
55          Window wnd;          Window wnd;
56          unsigned long id;          unsigned long id;
57          unsigned long parent;          unsigned long parent;
         XWMHints *hints;  
58          int xoffset, yoffset;          int xoffset, yoffset;
59          int width, height;          int width, height;
60          int state;              /* normal/minimized/maximized. */          int state;              /* normal/minimized/maximized. */
# Line 295  seamless_remove_window(seamless_window * Line 294  seamless_remove_window(seamless_window *
294                  if (sw == win)                  if (sw == win)
295                  {                  {
296                          *prevnext = sw->next;                          *prevnext = sw->next;
                         XFree(sw->hints);  
297                          xfree(sw);                          xfree(sw);
298                          return;                          return;
299                  }                  }
# Line 3114  ui_seamless_create_window(unsigned long Line 3112  ui_seamless_create_window(unsigned long
3112          sw->wnd = wnd;          sw->wnd = wnd;
3113          sw->id = id;          sw->id = id;
3114          sw->parent = parent;          sw->parent = parent;
         sw->hints = XAllocWMHints();  
         sw->hints->flags = 0;  
3115          sw->xoffset = 0;          sw->xoffset = 0;
3116          sw->yoffset = 0;          sw->yoffset = 0;
3117          sw->width = 0;          sw->width = 0;
# Line 3230  ui_seamless_setstate(unsigned long id, u Line 3226  ui_seamless_setstate(unsigned long id, u
3226                             XIconifyWindow is easier. */                             XIconifyWindow is easier. */
3227                          if (sw->state == SEAMLESSRDP_NOTYETMAPPED)                          if (sw->state == SEAMLESSRDP_NOTYETMAPPED)
3228                          {                          {
3229                                  sw->hints->flags |= StateHint;                                  XWMHints *hints;
3230                                  sw->hints->initial_state = IconicState;                                  hints = XAllocWMHints();
3231                                  XSetWMHints(g_display, sw->wnd, sw->hints);                                  hints->flags = StateHint;
3232                                    hints->initial_state = IconicState;
3233                                    XSetWMHints(g_display, sw->wnd, hints);
3234                                    XFree(hints);
3235                                  XMapWindow(g_display, sw->wnd);                                  XMapWindow(g_display, sw->wnd);
3236                          }                          }
3237                          else                          else

Legend:
Removed from v.1143  
changed lines
  Added in v.1144

  ViewVC Help
Powered by ViewVC 1.1.26