summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-12 19:34:00 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-12 19:34:00 +0000
commit67650e8eb245a5145ffec08837eac0821b655569 (patch)
tree6db1d23ab3930644004647a52a25f91513ae0f0b /chrome/browser/gtk
parentfabde3e594a91bd631691457826a0e16f64ca2a1 (diff)
downloadchromium_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/gtk')
-rw-r--r--chrome/browser/gtk/tabs/dragged_tab_gtk.cc5
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);