xserver/hw
Peter Hutterer 7f2f71da51 ephyr: if -parent is given, check for a trailing -screen. (#24144)
If -parent is given, don't open up a new window if -screen is given as well.
The commandline option -screen allows to set the depth of the embedded
Xephry instance, even though width and height are autoscaled on -parent.

This patch checks for a -screen parameter after -parent and - if one is
found - delays initializing the screen. The parent window id is stored
temporarily but re-set after a -screen argument.
The following command is thus valid:

Xephyr -parent 1234 -screen 640x480@8 -screen 1024x768

It embeds the first 8-bit screen into window 1234 and opens up a new window
for the second screen. Multiple parent arguments are possible, the screens
are embedded in-order.

X.Org Bug 24144 <http://bugs.freedesktop.org/show_bug.cgi?id=24144>

Tested-by: Vic Lee
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 19be992d9d)

Signed-off-by: Keith Packard <keithp@keithp.com>
2009-10-11 21:21:42 -07:00
..
dmx Fix dmx compile on 1.6 branch. 2009-01-12 10:57:11 -08:00
kdrive ephyr: if -parent is given, check for a trailing -screen. (#24144) 2009-10-11 21:21:42 -07:00
vfb vfb: Fix depth setup. 2009-06-11 15:19:47 -04:00
xfree86 Re-fix DGA removal. 2009-09-30 22:21:05 -07:00
xnest Warning fix 2008-11-25 15:05:18 -05:00
xquartz XQuartz: Re-enable support for capslock 2009-02-25 11:35:19 -08:00
xwin xalloc+memset(0) -> xcalloc 2008-10-06 15:36:51 -04:00
Makefile.am Remove xgl. 2008-06-12 16:00:50 -04:00