mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
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:
parent
867302e2c7
commit
6ba7d347c7
@ -1473,7 +1473,14 @@ gdk_wayland_window_set_type_hint (GdkWindow *window,
|
|||||||
static GdkWindowTypeHint
|
static GdkWindowTypeHint
|
||||||
gdk_wayland_window_get_type_hint (GdkWindow *window)
|
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
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user