From 0cde7879d6b5f14ec7b9b1816f2f03e58f4e3f36 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Wed, 17 Sep 2014 12:17:57 -0600 Subject: [PATCH] window: Move set_custom_frame_extents to be X11-only Wayland doesn't use custom frame extents anymore -- it uses a full geometry description. --- src/core/window-private.h | 3 --- src/core/window.c | 18 ------------------ src/x11/window-props.c | 18 ++++++++++++++++++ 3 files changed, 18 insertions(+), 21 deletions(-) diff --git a/src/core/window-private.h b/src/core/window-private.h index 73174f2eb..713acd3bd 100644 --- a/src/core/window-private.h +++ b/src/core/window-private.h @@ -653,9 +653,6 @@ void meta_window_set_transient_for (MetaWindow *window, void meta_window_set_opacity (MetaWindow *window, guint8 opacity); -void meta_window_set_custom_frame_extents (MetaWindow *window, - GtkBorder *extents); - void meta_window_handle_enter (MetaWindow *window, guint32 timestamp, guint root_x, diff --git a/src/core/window.c b/src/core/window.c index abf66949a..404d05a16 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -7887,24 +7887,6 @@ meta_window_handle_ungrabbed_event (MetaWindow *window, } } -void -meta_window_set_custom_frame_extents (MetaWindow *window, - GtkBorder *extents) -{ - if (extents) - { - window->has_custom_frame_extents = TRUE; - window->custom_frame_extents = *extents; - } - else - { - window->has_custom_frame_extents = FALSE; - memset (&window->custom_frame_extents, 0, sizeof (window->custom_frame_extents)); - } - - meta_window_queue (window, META_QUEUE_MOVE_RESIZE); -} - gboolean meta_window_can_maximize (MetaWindow *window) { diff --git a/src/x11/window-props.c b/src/x11/window-props.c index 79cc890c4..1b4fa6e33 100644 --- a/src/x11/window-props.c +++ b/src/x11/window-props.c @@ -338,6 +338,24 @@ reload_icon_geometry (MetaWindow *window, } } +static void +meta_window_set_custom_frame_extents (MetaWindow *window, + GtkBorder *extents) +{ + if (extents) + { + window->has_custom_frame_extents = TRUE; + window->custom_frame_extents = *extents; + } + else + { + window->has_custom_frame_extents = FALSE; + memset (&window->custom_frame_extents, 0, sizeof (window->custom_frame_extents)); + } + + meta_window_queue (window, META_QUEUE_MOVE_RESIZE); +} + static void reload_gtk_frame_extents (MetaWindow *window, MetaPropValue *value,