diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2015-11-19 20:33:03 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2015-11-19 23:28:19 +0100 |
commit | 26f9d6b1c18f020a6360ea3f971295200c426b28 (patch) | |
tree | d9c877e1fa06a65e2efd79e0cd441372c214c2b9 /gtk/gtkdnd.c | |
parent | ec65c6d1ce8a5387016851646342d2ecc6fd7bbb (diff) | |
download | gtk+-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.
Diffstat (limited to 'gtk/gtkdnd.c')
-rw-r--r-- | gtk/gtkdnd.c | 5 |
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; |