[gtk/present-toplevel-2: 11/71] wayland: Stop using gdk_surface_set_geometry_hints
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/present-toplevel-2: 11/71] wayland: Stop using gdk_surface_set_geometry_hints
- Date: Thu, 5 Mar 2020 02:27:30 +0000 (UTC)
commit 927b4d586209048562cea69464e006efb9f91ad9
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Feb 29 13:06:22 2020 -0500
wayland: Stop using gdk_surface_set_geometry_hints
Just use the backend function directly.
gdk/wayland/gdksurface-wayland.c | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c
index e6de133833..e84bd37960 100644
--- a/gdk/wayland/gdksurface-wayland.c
+++ b/gdk/wayland/gdksurface-wayland.c
@@ -1025,6 +1025,10 @@ gdk_wayland_surface_get_window_geometry (GdkSurface *surface,
};
}
+static void gdk_wayland_surface_set_geometry_hints (GdkSurface *surface,
+ const GdkGeometry *geometry,
+ GdkSurfaceHints geom_mask);
+
static void
gdk_wayland_surface_sync_margin (GdkSurface *surface)
{
@@ -1037,9 +1041,9 @@ gdk_wayland_surface_sync_margin (GdkSurface *surface)
return;
gdk_wayland_surface_get_window_geometry (surface, &geometry);
- gdk_surface_set_geometry_hints (surface,
- &impl->geometry_hints,
- impl->geometry_mask);
+ gdk_wayland_surface_set_geometry_hints (surface,
+ &impl->geometry_hints,
+ impl->geometry_mask);
switch (display_wayland->shell_variant)
{
@@ -3125,9 +3129,9 @@ gdk_wayland_surface_init_gtk_surface (GdkSurface *surface)
impl->display_server.wl_surface);
wl_proxy_set_queue ((struct wl_proxy *) impl->display_server.gtk_surface,
impl->event_queue);
- gdk_surface_set_geometry_hints (surface,
- &impl->geometry_hints,
- impl->geometry_mask);
+ gdk_wayland_surface_set_geometry_hints (surface,
+ &impl->geometry_hints,
+ impl->geometry_mask);
gtk_surface1_add_listener (impl->display_server.gtk_surface,
>k_surface_listener,
surface);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]