/[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 1182 by ossman_, Tue Mar 21 15:31:48 2006 UTC revision 1183 by ossman_, Wed Mar 22 09:49:21 2006 UTC
# Line 320  sw_remove_window(seamless_window * win) Line 320  sw_remove_window(seamless_window * win)
320                                  XDestroyWindow(g_display, sw->group->wnd);                                  XDestroyWindow(g_display, sw->group->wnd);
321                                  xfree(sw->group);                                  xfree(sw->group);
322                          }                          }
323                            xfree(sw->position_timer);
324                          xfree(sw);                          xfree(sw);
325                          return;                          return;
326                  }                  }
# Line 441  sw_handle_restack(seamless_window * sw) Line 442  sw_handle_restack(seamless_window * sw)
442          {          {
443                  i++;                  i++;
444                  if (i >= nchildren)                  if (i >= nchildren)
445                          return;                          goto end;
446          }          }
447    
448          for (i++; i < nchildren; i++)          for (i++; i < nchildren; i++)
# Line 452  sw_handle_restack(seamless_window * sw) Line 453  sw_handle_restack(seamless_window * sw)
453          }          }
454    
455          if (!sw_below && !sw->behind)          if (!sw_below && !sw->behind)
456                  return;                  goto end;
457          if (sw_below && (sw_below->id == sw->behind))          if (sw_below && (sw_below->id == sw->behind))
458                  return;                  goto end;
459    
460          if (sw_below)          if (sw_below)
461          {          {
# Line 466  sw_handle_restack(seamless_window * sw) Line 467  sw_handle_restack(seamless_window * sw)
467                  seamless_send_zchange(sw->id, 0, 0);                  seamless_send_zchange(sw->id, 0, 0);
468                  sw_restack_window(sw, 0);                  sw_restack_window(sw, 0);
469          }          }
470    
471          end:
472            XFree(children);
473  }  }
474    
475    
# Line 1626  ui_init(void) Line 1630  ui_init(void)
1630  void  void
1631  ui_deinit(void)  ui_deinit(void)
1632  {  {
1633            while (g_seamless_windows)
1634            {
1635                    XDestroyWindow(g_display, g_seamless_windows->wnd);
1636                    sw_remove_window(g_seamless_windows);
1637            }
1638    
1639          if (g_IM != NULL)          if (g_IM != NULL)
1640                  XCloseIM(g_IM);                  XCloseIM(g_IM);
1641    

Legend:
Removed from v.1182  
changed lines
  Added in v.1183

  ViewVC Help
Powered by ViewVC 1.1.26