/[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 1192 by astrand, Wed Mar 22 10:02:11 2006 UTC revision 1193 by ossman_, Wed Mar 22 16:20:55 2006 UTC
# Line 82  static seamless_window *g_seamless_windo Line 82  static seamless_window *g_seamless_windo
82  static unsigned long g_seamless_focused = 0;  static unsigned long g_seamless_focused = 0;
83  static BOOL g_seamless_started = False; /* Server end is up and running */  static BOOL g_seamless_started = False; /* Server end is up and running */
84  static BOOL g_seamless_active = False;  /* We are currently in seamless mode */  static BOOL g_seamless_active = False;  /* We are currently in seamless mode */
85    static BOOL g_seamless_hidden = False;  /* Desktop is hidden on server */
86  extern BOOL g_seamless_rdp;  extern BOOL g_seamless_rdp;
87    
88  extern uint32 g_embed_wnd;  extern uint32 g_embed_wnd;
# Line 3244  ui_end_update(void) Line 3245  ui_end_update(void)
3245    
3246    
3247  void  void
3248  ui_seamless_begin()  ui_seamless_begin(BOOL hidden)
3249  {  {
3250          if (!g_seamless_rdp)          if (!g_seamless_rdp)
3251                  return;                  return;
# Line 3253  ui_seamless_begin() Line 3254  ui_seamless_begin()
3254                  return;                  return;
3255    
3256          g_seamless_started = True;          g_seamless_started = True;
3257            g_seamless_hidden = hidden;
3258    
3259            if (!hidden)
3260                    ui_seamless_toggle();
3261    }
3262    
3263    
3264    void
3265    ui_seamless_hide_desktop()
3266    {
3267            if (!g_seamless_rdp)
3268                    return;
3269    
3270            if (!g_seamless_started)
3271                    return;
3272    
3273            if (g_seamless_active)
3274                    ui_seamless_toggle();
3275    
3276            g_seamless_hidden = True;
3277    }
3278    
3279    
3280    void
3281    ui_seamless_unhide_desktop()
3282    {
3283            if (!g_seamless_rdp)
3284                    return;
3285    
3286            if (!g_seamless_started)
3287                    return;
3288    
3289            g_seamless_hidden = False;
3290    
3291          ui_seamless_toggle();          ui_seamless_toggle();
3292  }  }
3293    
# Line 3266  ui_seamless_toggle() Line 3301  ui_seamless_toggle()
3301          if (!g_seamless_started)          if (!g_seamless_started)
3302                  return;                  return;
3303    
3304            if (g_seamless_hidden)
3305                    return;
3306    
3307          if (g_seamless_active)          if (g_seamless_active)
3308          {          {
3309                  /* Deactivate */                  /* Deactivate */

Legend:
Removed from v.1192  
changed lines
  Added in v.1193

  ViewVC Help
Powered by ViewVC 1.1.26