summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-08 21:09:46 +0000
committerwez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-08 21:09:46 +0000
commit4420c2085a743553df7d15c05d30721f857751d4 (patch)
tree9bba683ea40ef4040f2769fad4e47481574b4373
parentdb2254213057aacc3f1768c2fbe185a208a11288 (diff)
downloadchromium_src-4420c2085a743553df7d15c05d30721f857751d4.zip
chromium_src-4420c2085a743553df7d15c05d30721f857751d4.tar.gz
chromium_src-4420c2085a743553df7d15c05d30721f857751d4.tar.bz2
Merge 192755 "Disable Composite iff running Unity 2D."
> 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 TBR=wez@chromium.org git-svn-id: svn://svn.chromium.org/chrome/branches/1453/src@192892 0039d316-1c4b-4281-b951-d872f2087c98
-rwxr-xr-xremoting/tools/me2me_virtual_host.py10
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