diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-10 22:08:01 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-10 22:08:01 +0000 |
commit | 62fd5af1aac8b2a80bf6336a7f7a10cad1086c3e (patch) | |
tree | 1963b468b38ba584bcc23292a07173f36b1d2b31 /chrome/browser/gtk | |
parent | 121cd7b957d4ed22f861a22783de788703bcaf7c (diff) | |
download | chromium_src-62fd5af1aac8b2a80bf6336a7f7a10cad1086c3e.zip chromium_src-62fd5af1aac8b2a80bf6336a7f7a10cad1086c3e.tar.gz chromium_src-62fd5af1aac8b2a80bf6336a7f7a10cad1086c3e.tar.bz2 |
[GTK] disable drag image for non-compositing WMs.
BUG=55143
TEST=drag something in the render view
Review URL: http://codereview.chromium.org/3351024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59158 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk')
-rw-r--r-- | chrome/browser/gtk/tab_contents_drag_source.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/gtk/tab_contents_drag_source.cc b/chrome/browser/gtk/tab_contents_drag_source.cc index 1de42ed..e6da6ad 100644 --- a/chrome/browser/gtk/tab_contents_drag_source.cc +++ b/chrome/browser/gtk/tab_contents_drag_source.cc @@ -101,7 +101,9 @@ void TabContentsDragSource::StartDragging(const WebDropData& drop_data, drop_data_.reset(new WebDropData(drop_data)); - if (!image.isNull()) + // The image we get from WebKit makes heavy use of alpha-shading. This looks + // bad on non-compositing WMs. Fall back to the default drag icon. + if (!image.isNull() && gtk_util::IsScreenComposited()) drag_pixbuf_ = gfx::GdkPixbufFromSkBitmap(&image); image_offset_ = image_offset; |