[gtk+] gtkdnd: Ensure we don't fold the drag icon into the cursor on wayland



commit 26f9d6b1c18f020a6360ea3f971295200c426b28
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Nov 19 20:33:03 2015 +0100

    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.

 gtk/gtkdnd.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index 42bf8f1..d495ca9 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;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]