[gtk+] wayland: Implement minimize support



commit 6886f479fee4c855823a2adcc84bf23e74b2305f
Author: Armin K <krejzi email com>
Date:   Wed Feb 11 00:06:38 2015 +0100

    wayland: Implement minimize support
    
    Use the existing xdg_surface API for minimization.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=695945

 gdk/wayland/gdkwindow-wayland.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index 4c26546..4710087 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -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


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