/[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 1093 by astrand, Fri Mar 10 09:01:51 2006 UTC revision 1094 by astrand, Fri Mar 10 10:40:50 2006 UTC
# Line 150  seamless_process_line(const char *line, Line 150  seamless_process_line(const char *line,
150          {          {
151                  unimpl("SeamlessRDP ZCHANGE1\n");                  unimpl("SeamlessRDP ZCHANGE1\n");
152          }          }
153          else if (!strcmp("SETSTATE", tok1))          else if (!strcmp("TITLE", tok1))
154            {
155                    if (!tok4)
156                            return False;
157    
158                    id = strtol(tok2, &endptr, 16);
159                    if (*endptr)
160                            return False;
161    
162                    flags = strtol(tok4, &endptr, 16);
163                    if (*endptr)
164                            return False;
165    
166                    ui_seamless_settitle(id, tok3, flags);
167            }
168            else if (!strcmp("STATE", tok1))
169          {          {
170                  unsigned int state;                  unsigned int state;
171    
172                  if (!tok5)                  if (!tok4)
173                          return False;                          return False;
174    
175                  id = strtol(tok2, &endptr, 16);                  id = strtol(tok2, &endptr, 16);
176                  if (*endptr)                  if (*endptr)
177                          return False;                          return False;
178    
179                  state = strtol(tok4, &endptr, 16);      // XXX                  state = strtol(tok3, &endptr, 16);
180                  if (*endptr)                  if (*endptr)
181                          return False;                          return False;
182    
183                  flags = strtol(tok5, &endptr, 16);                  flags = strtol(tok4, &endptr, 16);
184                  if (*endptr)                  if (*endptr)
185                          return False;                          return False;
186    
                 /* FIXME */  
                 ui_seamless_settitle(id, tok3);  
187                  ui_seamless_setstate(id, state, flags);                  ui_seamless_setstate(id, state, flags);
188          }          }
189          else if (!strcmp("DEBUG", tok1))          else if (!strcmp("DEBUG", tok1))

Legend:
Removed from v.1093  
changed lines
  Added in v.1094

  ViewVC Help
Powered by ViewVC 1.1.26