diff options
author | wez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-06 16:05:33 +0000 |
---|---|---|
committer | wez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-06 16:05:33 +0000 |
commit | 78b2b9920210ffe2e313a64c65f7df3d8301df31 (patch) | |
tree | 9887519ecf1e9e9f85d62eb5d4d2d0902eaa25cf /remoting/tools | |
parent | 792c4f4d2c976a77b06e4e46c6031dccc95cd7f8 (diff) | |
download | chromium_src-78b2b9920210ffe2e313a64c65f7df3d8301df31.zip chromium_src-78b2b9920210ffe2e313a64c65f7df3d8301df31.tar.gz chromium_src-78b2b9920210ffe2e313a64c65f7df3d8301df31.tar.bz2 |
Disable Composite iff running Unity 2D.
This works-around an issue in the Metacity compositor, used by Unity 2D.
BUG=166468
Review URL: https://chromiumcodereview.appspot.com/13746003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192755 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/tools')
-rwxr-xr-x | remoting/tools/me2me_virtual_host.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/remoting/tools/me2me_virtual_host.py b/remoting/tools/me2me_virtual_host.py index 5b8cf17..d5426d4 100755 --- a/remoting/tools/me2me_virtual_host.py +++ b/remoting/tools/me2me_virtual_host.py @@ -316,6 +316,14 @@ class Desktop: xvfb = "Xvfb" self.server_supports_exact_resize = False + # Disable the Composite extension iff the X session is the default + # Unity-2D, since it uses Metacity which fails to generate DAMAGE + # notifications correctly. See crbug.com/166468. + x_session = choose_x_session(); + if (len(x_session) == 2 and + x_session[1] == "/usr/bin/gnome-session --session=ubuntu-2d"): + extra_x_args.extend(["-extension", "Composite"]) + logging.info("Starting %s on display :%d" % (xvfb, display)) screen_option = "%dx%dx24" % (max_width, max_height) self.x_proc = subprocess.Popen( @@ -509,7 +517,7 @@ def choose_x_session(): else: # Use the session wrapper by itself, and let the system choose a # session. - return session_wrapper + return [session_wrapper] return None |