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
This commit is contained in:
Carlos Garnacho 2014-08-28 14:10:00 +02:00
parent 867302e2c7
commit 6ba7d347c7

View File

@ -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