[PATCH 2/2] ephyr: enable screen window placement following kdrive -screen option new syntax

Laércio de Sousa lbsousajr at gmail.com
Fri Feb 14 04:05:35 PST 2014


With this patch, one can launch Xephyr with option "-screen WxH+X+Y"
to place its window origin at (X,Y). This patch relies on a previous
one that extends kdrive -screen option syntax to parse +X+Y substring
as expected.

In my tests, any try to set Xephyr window placement using extended
-screen option is completely ignored/overriden when it's launched
within a Window Manager/Desktop Environment. However, this setting
does work when Xephyr is launched directly from Console or Display
Manager (which is the typical case for multiseat setup).
---
 hw/kdrive/ephyr/hostx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/hw/kdrive/ephyr/hostx.c b/hw/kdrive/ephyr/hostx.c
index 44ad8e2..00e4dac 100644
--- a/hw/kdrive/ephyr/hostx.c
+++ b/hw/kdrive/ephyr/hostx.c
@@ -371,7 +371,8 @@ hostx_init(void)
                               XCB_COPY_FROM_PARENT,
                               scrpriv->win,
                               HostX.winroot,
-                              0,0,100,100, /* will resize */
+                              screen->x, screen->y,
+                              screen->width, screen->height,
                               0,
                               XCB_WINDOW_CLASS_COPY_FROM_PARENT,
                               XCB_COPY_FROM_PARENT,
-- 
1.8.4.5



More information about the xorg-devel mailing list