diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-12 19:34:00 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-12 19:34:00 +0000 |
commit | 67650e8eb245a5145ffec08837eac0821b655569 (patch) | |
tree | 6db1d23ab3930644004647a52a25f91513ae0f0b /chrome/browser | |
parent | fabde3e594a91bd631691457826a0e16f64ca2a1 (diff) | |
download | chromium_src-67650e8eb245a5145ffec08837eac0821b655569.zip chromium_src-67650e8eb245a5145ffec08837eac0821b655569.tar.gz chromium_src-67650e8eb245a5145ffec08837eac0821b655569.tar.bz2 |
Linux: Use opaque black instead of opaque white when setting the mask during a tab DnD.
BUG=48199
TEST=Manual, see bug.
Review URL: http://codereview.chromium.org/2922004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52120 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/gtk/tabs/dragged_tab_gtk.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/gtk/tabs/dragged_tab_gtk.cc b/chrome/browser/gtk/tabs/dragged_tab_gtk.cc index 9b54934..96aae10 100644 --- a/chrome/browser/gtk/tabs/dragged_tab_gtk.cc +++ b/chrome/browser/gtk/tabs/dragged_tab_gtk.cc @@ -249,7 +249,10 @@ void DraggedTabGtk::SetContainerShapeMask(cairo_surface_t* surface) { // Make the render area depiction opaque (leaving enough room for the // border). cairo_identity_matrix(cairo_context); - cairo_set_source_rgba(cairo_context, 1.0f, 1.0f, 1.0f, 1.0f); + // On Lucid running VNC, the X server will reject RGBA (1,1,1,1) as an + // invalid value below in gdk_window_shape_combine_mask(). Using (0,0,0,1) + // instead. The value doesn't really matter, as long as the alpha is not 0. + cairo_set_source_rgba(cairo_context, 0.0f, 0.0f, 0.0f, 1.0f); int tab_height = static_cast<int>(kScalingFactor * renderer_->height() - kDragFrameBorderSize); |