From 5a3eb36e2c7fd1698e9f2b04101aa89ae079a415 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Fri, 11 Feb 2011 23:19:35 -0800 Subject: [PATCH] Migrated to newer libguac (layer support) --- protocols/vnc/src/vnc_client.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/protocols/vnc/src/vnc_client.c b/protocols/vnc/src/vnc_client.c index 6c374433..169f2d94 100644 --- a/protocols/vnc/src/vnc_client.c +++ b/protocols/vnc/src/vnc_client.c @@ -168,7 +168,8 @@ void guac_vnc_update(rfbClient* client, int x, int y, int w, int h) { } } - guac_send_png(io, x, y, png_buffer, w, h); + /* For now, only use layer 0 */ + guac_send_png(io, 0, x, y, png_buffer, w, h); } @@ -177,7 +178,8 @@ void guac_vnc_copyrect(rfbClient* client, int src_x, int src_y, int w, int h, in guac_client* gc = rfbClientGetClientData(client, __GUAC_CLIENT); GUACIO* io = gc->io; - guac_send_copy(io, src_x, src_y, w, h, dest_x, dest_y); + /* For now, only use layer 0 */ + guac_send_copy(io, 0, src_x, src_y, w, h, 0, dest_x, dest_y); ((vnc_guac_client_data*) gc->data)->copy_rect_used = 1; }