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

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

revision 1149 by ossman_, Thu Mar 16 15:27:59 2006 UTC revision 1157 by astrand, Fri Mar 17 12:39:09 2006 UTC
# Line 151  seamless_process_line(const char *line, Line 151  seamless_process_line(const char *line,
151          }          }
152          else if (!strcmp("ZCHANGE", tok1))          else if (!strcmp("ZCHANGE", tok1))
153          {          {
154                  unimpl("SeamlessRDP ZCHANGE1\n");                  unsigned long behind;
155    
156                    id = strtoul(tok2, &endptr, 0);
157                    if (*endptr)
158                            return False;
159    
160                    behind = strtoul(tok3, &endptr, 0);
161                    if (*endptr)
162                            return False;
163    
164                    flags = strtoul(tok4, &endptr, 0);
165                    if (*endptr)
166                            return False;
167    
168                    ui_seamless_restack_window(id, behind, flags);
169          }          }
170          else if (!strcmp("TITLE", tok1))          else if (!strcmp("TITLE", tok1))
171          {          {
# Line 323  seamless_send_state(unsigned long id, un Line 337  seamless_send_state(unsigned long id, un
337    
338          seamless_send("STATE,0x%08lx,0x%x,0x%lx\n", id, state, flags);          seamless_send("STATE,0x%08lx,0x%x,0x%lx\n", id, state, flags);
339  }  }
340    
341    
342    void
343    seamless_send_position(unsigned long id, int x, int y, int width, int height, unsigned long flags)
344    {
345            seamless_send("POSITION,0x%08lx,%d,%d,%d,%d,0x%lx\n", id, x, y, width, height, flags);
346    }
347    
348    
349    /* Update select timeout */
350    void
351    seamless_select_timeout(struct timeval *tv)
352    {
353            struct timeval ourtimeout = { 0, SEAMLESSRDP_POSITION_TIMER };
354    
355            if (g_seamless_rdp)
356            {
357                    if (timercmp(&ourtimeout, tv, <))
358                    {
359                            tv->tv_sec = ourtimeout.tv_sec;
360                            tv->tv_usec = ourtimeout.tv_usec;
361                    }
362            }
363    }
364    
365    
366    void
367    seamless_send_zchange(unsigned long id, unsigned long below, unsigned long flags)
368    {
369            if (!g_seamless_rdp)
370                    return;
371    
372            seamless_send("ZCHANGE,0x%08lx,0x%08lx,0x%lx\n", id, below, flags);
373    }
374    
375    
376    void
377    seamless_send_focus(unsigned long id, unsigned long flags)
378    {
379            if (!g_seamless_rdp)
380                    return;
381    
382            seamless_send("FOCUS,0x%08lx,0x%lx\n", id, flags);
383    }

Legend:
Removed from v.1149  
changed lines
  Added in v.1157

  ViewVC Help
Powered by ViewVC 1.1.26