[gtk+/wayland-selections: 11/14] wayland: Return properly type hints from GdkWindows



commit 6ba7d347c7e6cbf6d17f1011f6e7b72e012a4613
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Aug 28 14:10:00 2014 +0200

    wayland: Return properly type hints from GdkWindows
    
    This was hardcoded to GDK_WINDOW_TYPE_HINT_NORMAL, even though wayland
    windows store the type hint themselves.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=697855

 gdk/wayland/gdkwindow-wayland.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index cfbc299..d40599e 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -1473,7 +1473,14 @@ gdk_wayland_window_set_type_hint (GdkWindow         *window,
 static GdkWindowTypeHint
 gdk_wayland_window_get_type_hint (GdkWindow *window)
 {
-  return GDK_WINDOW_TYPE_HINT_NORMAL;
+  GdkWindowImplWayland *impl;
+
+  if (GDK_WINDOW_DESTROYED (window))
+    return GDK_WINDOW_TYPE_HINT_NORMAL;
+
+  impl = GDK_WINDOW_IMPL_WAYLAND (window->impl);
+
+  return impl->hint;
 }
 
 void


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