[gtk/present-toplevel-2: 19/83] wayland: Stop using gdk_surface_set_geometry_hints



commit 29606af03ec9292551f1c2be8b4e69c53f8b3a29
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,
                              &gtk_surface_listener,
                              surface);


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