[gtk+/wayland-selections: 11/15] wayland: Don't set an xdg surface to DnD windows



commit 8d62c3cd28d136d5eba66d8e8e4c8d8ab21c9037
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Aug 22 16:33:47 2014 +0200

    wayland: Don't set an xdg surface to DnD windows

 gdk/wayland/gdkwindow-wayland.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index f96b6b8..cfbc299 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -1122,7 +1122,8 @@ gdk_wayland_window_map (GdkWindow *window)
             }
         }
 
-      if (GDK_WINDOW_TYPE (window) != GDK_WINDOW_SUBSURFACE)
+      if (impl->hint != GDK_WINDOW_TYPE_HINT_DND &&
+          GDK_WINDOW_TYPE (window) != GDK_WINDOW_SUBSURFACE)
         gdk_wayland_window_create_xdg_surface (window);
 
     mapped:


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