[gtk+/wayland-selections: 12/15] wayland: Return properly type hints from GdkWindows
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wayland-selections: 12/15] wayland: Return properly type hints from GdkWindows
- Date: Thu, 28 Aug 2014 19:24:17 +0000 (UTC)
commit 1aae470b69291db31cab53a9a2ebab8a214d1004
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.
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]