340 |
|
|
341 |
|
|
342 |
void |
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) |
seamless_send_zchange(unsigned long id, unsigned long below, unsigned long flags) |
368 |
{ |
{ |
369 |
if (!g_seamless_rdp) |
if (!g_seamless_rdp) |