[gtk/present-toplevel: 42/54] surface: Implement new toplevel layout features
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/present-toplevel: 42/54] surface: Implement new toplevel layout features
- Date: Sun, 1 Mar 2020 19:37:14 +0000 (UTC)
commit 6c974d5e54e951d1a381151f8dd9bbd81b46363e
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Mar 1 10:29:10 2020 -0800
surface: Implement new toplevel layout features
gdk/gdksurface.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
---
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index 95f1732db4..31dbd65d8c 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -2015,6 +2015,16 @@ gdk_toplevel_surface_present (GdkToplevel *toplevel,
else
GDK_SURFACE_GET_CLASS (surface)->unmaximize (surface);
+ if (gdk_toplevel_layout_get_minimized (layout))
+ GDK_SURFACE_GET_CLASS (surface)->minimize (surface);
+ else
+ GDK_SURFACE_GET_CLASS (surface)->unminimize (surface);
+
+ if (gdk_toplevel_layout_get_stick (layout))
+ GDK_SURFACE_GET_CLASS (surface)->stick (surface);
+ else
+ GDK_SURFACE_GET_CLASS (surface)->unstick (surface);
+
if (gdk_toplevel_layout_get_fullscreen (layout))
{
GdkMonitor *monitor = gdk_toplevel_layout_get_fullscreen_monitor (layout);
@@ -2026,6 +2036,9 @@ gdk_toplevel_surface_present (GdkToplevel *toplevel,
else
GDK_SURFACE_GET_CLASS (surface)->unfullscreen (surface);
+ GDK_SURFACE_GET_CLASS (surface)->set_keep_above (surface, gdk_toplevel_layout_get_keep_above (layout));
+ GDK_SURFACE_GET_CLASS (surface)->set_keep_below (surface, gdk_toplevel_layout_get_keep_below (layout));
+
GDK_SURFACE_GET_CLASS (surface)->set_modal_hint (surface, gdk_toplevel_layout_get_modal (layout));
GDK_SURFACE_GET_CLASS (surface)->set_type_hint (surface, gdk_toplevel_layout_get_type_hint (layout));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]