summaryrefslogtreecommitdiff
path: root/gdk/wayland
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-03-09 11:38:08 -0700
committerMatthias Clasen <mclasen@redhat.com>2020-03-12 15:30:11 -0400
commit81be6ff46b201dfb1dc1f581ecb6f04c10a2f8dd (patch)
tree1cb508728f7b264b27497f24365ab49559867519 /gdk/wayland
parentb7f51a362e530ea8b4ec4959adc37974648286a6 (diff)
downloadgtk+-81be6ff46b201dfb1dc1f581ecb6f04c10a2f8dd.tar.gz
Move edge-constraints to GdkToplevel
Diffstat (limited to 'gdk/wayland')
-rw-r--r--gdk/wayland/gdksurface-wayland.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c
index 83291f69e4..0c795e8d82 100644
--- a/gdk/wayland/gdksurface-wayland.c
+++ b/gdk/wayland/gdksurface-wayland.c
@@ -3711,7 +3711,6 @@ gdk_wayland_surface_class_init (GdkWaylandSurfaceClass *klass)
impl_class->set_opaque_region = gdk_wayland_surface_set_opaque_region;
impl_class->set_shadow_width = gdk_wayland_surface_set_shadow_width;
impl_class->create_gl_context = gdk_wayland_surface_create_gl_context;
- impl_class->supports_edge_constraints = gdk_wayland_surface_supports_edge_constraints;
signals[COMMITTED] = g_signal_new (g_intern_static_string ("committed"),
G_TYPE_FROM_CLASS (object_class),
@@ -4551,6 +4550,12 @@ gdk_wayland_toplevel_show_window_menu (GdkToplevel *toplevel,
return gdk_wayland_surface_show_window_menu (GDK_SURFACE (toplevel), event);
}
+static gboolean
+gdk_wayland_toplevel_supports_edge_constraints (GdkToplevel *toplevel)
+{
+ return gdk_wayland_surface_supports_edge_constraints (GDK_SURFACE (toplevel));
+}
+
static void
gdk_wayland_toplevel_iface_init (GdkToplevelInterface *iface)
{
@@ -4559,6 +4564,7 @@ gdk_wayland_toplevel_iface_init (GdkToplevelInterface *iface)
iface->lower = gdk_wayland_toplevel_lower;
iface->focus = gdk_wayland_toplevel_focus;
iface->show_window_menu = gdk_wayland_toplevel_show_window_menu;
+ iface->supports_edge_constraints = gdk_wayland_toplevel_supports_edge_constraints;
}
typedef struct