xserver/hw/kdrive
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
..
ephyr ephyr: if -parent is given, check for a trailing -screen. (#24144) 2009-10-11 21:21:42 -07:00
fake xalloc+memset(0) -> xcalloc 2008-10-06 15:36:51 -04:00
fbdev Remove some null statements. 2008-11-08 12:21:20 -05:00
linux kdrive: lastx/y needs to be set to the event coordinates #17728 2008-10-10 16:58:08 +10:30
sdl Fix GLX in Xvfb and kdrive. 2008-07-02 11:25:50 -04:00
src kdrive: set Activate/Deactivate grab for input devices (#21591) 2009-06-29 14:17:13 -07:00
Makefile.am kdrive: Bye bye Xvesa 2008-11-05 11:39:46 -05:00
Xkdrive.man The great kdrive purge. 2008-05-16 08:16:01 -04:00