please see the following diff. this will make the client change the screen
size when the server changes. I am not in this list. please r me if you have
any question.

diff --git a/vnc/vnc.c b/vnc/vnc.c
index 0c321d4..633dcdc 100644
--- a/vnc/vnc.c
+++ b/vnc/vnc.c
@@ -582,6 +582,12 @@ lib_framebuffer_update(struct vnc* v)
           error = v->server_screen_blt(v, x, y, cx, cy, srcx, srcy);
         }
       }
+      else if (encoding == 0xffffff21) /* Desktop size */
+      {
+       v->mod_width = cx;
+       v->mod_height = cy;
+       error = v->server_reset(v, cx, cy, v->mod_bpp);
+      }
       else if (encoding == 0xffffff11) /* cursor */
       {
         g_memset(cursor_data, 0, 32 * (32 * 3));
@@ -1060,12 +1066,13 @@ connections", 0);
     init_stream(s, 8192);
     out_uint8(s, 2);
     out_uint8(s, 0);
-    out_uint16_be(s, 3);
+    out_uint16_be(s, 4);
     out_uint32_be(s, 0); /* raw */
     out_uint32_be(s, 1); /* copy rect */
     out_uint32_be(s, 0xffffff11); /* cursor */
+    out_uint32_be(s, 0xffffff21);
     v->server_msg(v, "sending encodings", 0);
-    error = lib_send(v, s->data, 4 + 3 * 4);
+    error = lib_send(v, s->data, 4 + 4 * 4);
   }
   if (error == 0)
   {


-- 
-Howard
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
xrdp-devel mailing list
xrdp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xrdp-devel

Reply via email to