Add -w (widescreen) and --geometry options to start-in-Xephyr. #570580

svn path=/trunk/; revision=187
This commit is contained in:
Dan Winship
2009-02-05 15:35:23 +00:00
parent 153541841b
commit cc4325ea79
2 changed files with 16 additions and 13 deletions

View File

@ -11,10 +11,8 @@ import time
from launcher import Launcher
launcher = Launcher()
# GL_EXT_texture_from_pixmap doesn't work in Xepyhr
launcher.set_use_tfp(False)
launcher = Launcher(use_tfp=False, accept_geometry=True)
# Temporary directory to hold our X credentials
tmpdir = tempfile.mkdtemp("", "gnome-shell.")
@ -38,7 +36,7 @@ try:
# Launch Xephyr
xephyr = subprocess.Popen(["Xephyr", display,
"-auth", xauth_file,
"-screen", "1024x748",
"-screen", launcher.get_geometry(),
"-host-cursor"])
os.environ['DISPLAY'] = display
os.environ['XAUTHORITY'] = xauth_file