summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2015-11-19 20:33:03 +0100
committerCarlos Garnacho <carlosg@gnome.org>2015-11-19 23:28:19 +0100
commit26f9d6b1c18f020a6360ea3f971295200c426b28 (patch)
treed9c877e1fa06a65e2efd79e0cd441372c214c2b9
parentec65c6d1ce8a5387016851646342d2ecc6fd7bbb (diff)
downloadgtk+-26f9d6b1c18f020a6360ea3f971295200c426b28.tar.gz
gtkdnd: Ensure we don't fold the drag icon into the cursor on wayland
This is wrong by all accounts there, as we can do no tricks there to show a "drag failed" animation, which is performed by the compositor itself on wayland.
-rw-r--r--gtk/gtkdnd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index 42bf8f1187..d495ca9179 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -786,7 +786,10 @@ gtk_drag_can_use_rgba_cursor (GdkDisplay *display,
gint height)
{
guint max_width, max_height;
-
+
+ if (GDK_IS_WAYLAND_DISPLAY (display))
+ return FALSE;
+
if (!gdk_display_supports_cursor_color (display))
return FALSE;