Package: xvnc4viewer
Version: 4.1.1+X4.3.0-21
Severity: normal
Tags: patch

While working in a product here at O.S. Systems, we cook up this patch
and it might be useful for others too.

Thanks in advance,

--- a/parameters.h      2007-07-12 09:22:24.591551132 -0300
+++ b/parameters.h      2007-07-12 09:25:23.101723657 -0300
@@ -38,6 +38,7 @@
 extern rfb::BoolParameter fullScreen;
 extern rfb::StringParameter geometry;
 extern rfb::BoolParameter popupXDialog;
+extern rfb::StringParameter xEmbed;
 
 extern char aboutText[];
 extern char* programName;
--- a/vncviewer.cxx     2007-07-12 09:23:41.595939203 -0300
+++ b/vncviewer.cxx     2007-07-12 09:25:27.601980041 -0300
@@ -100,6 +100,7 @@
                            !isatty(0));
 StringParameter geometry("geometry", "X geometry specification", "");
 StringParameter displayname("display", "The X display", "");
+StringParameter xEmbed("XEmbed", "Embed into another window with a given id", 
"");
 
 /* Support for tunnelling */
 StringParameter via("via", "Gateway to tunnel via", "");
--- a/CConn.cxx 2007-07-12 09:24:19.098076430 -0300
+++ b/CConn.cxx 2007-07-12 09:29:29.115743176 -0300
@@ -295,9 +295,16 @@
   fullColourPF = desktop->getPF();
   if (!serverPF.trueColour)
     fullColour = true;
-  recreateViewport();
+  CharArray xEmbedStr(xEmbed.getData());
+  if (!xEmbedStr.buf[0])
+    recreateViewport();
   formatChange = encodingChange = true;
   requestNewUpdate();
+  if (xEmbedStr.buf[0]) {
+    unsigned int targetWindow = 0;
+    targetWindow = strtol(xEmbed.getData(), NULL, 0);
+    XReparentWindow(dpy, desktop->win(), (Window) targetWindow, 0, 0);
+  }
 }
 
 // setDesktopSize() is called when the desktop size changes (including when


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-2-686 (SMP w/1 CPU core)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages xvnc4viewer depends on:
ii  libc6                   2.6.1-6          GNU C Library: Shared libraries
ii  libgcc1                 1:4.2.2-3        GCC support library
ii  libice6                 2:1.0.4-1        X11 Inter-Client Exchange library
ii  libsm6                  2:1.0.3-1+b1     X11 Session Management library
ii  libstdc++6              4.2.2-3          The GNU Standard C++ Library v3
ii  libx11-6                2:1.0.3-7        X11 client-side library
ii  libxext6                1:1.0.3-2        X11 miscellaneous extension librar
ii  zlib1g                  1:1.2.3.3.dfsg-6 compression library - runtime

xvnc4viewer recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to