wayland: Implement minimize support

Use the existing xdg_surface API for minimization.

https://bugzilla.gnome.org/show_bug.cgi?id=695945
This commit is contained in:
Armin K 2015-02-11 00:06:38 +01:00 committed by Matthias Clasen
parent c82ad2c129
commit 6886f479fe

View File

@ -1682,6 +1682,16 @@ gdk_wayland_window_set_icon_name (GdkWindow *window,
static void
gdk_wayland_window_iconify (GdkWindow *window)
{
GdkWindowImplWayland *impl = GDK_WINDOW_IMPL_WAYLAND (window->impl);
if (GDK_WINDOW_DESTROYED (window) ||
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
return;
if (!impl->xdg_surface)
return;
xdg_surface_set_minimized (impl->xdg_surface);
}
static void