From 4dafd102012ffe0a8969a41f4697fb4c236424f3 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 8 Mar 2023 14:08:26 -0500 Subject: [PATCH] x11: Update for api change --- gdk/x11/gdksurface-x11.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gdk/x11/gdksurface-x11.c b/gdk/x11/gdksurface-x11.c index d5623ffbb2..9f69dfc593 100644 --- a/gdk/x11/gdksurface-x11.c +++ b/gdk/x11/gdksurface-x11.c @@ -40,6 +40,7 @@ #include "gdkglcontext-x11.h" #include "gdkprivate-x11.h" #include "gdktextureprivate.h" +#include "gdkdragsurfacesizeprivate.h" #include "gdkseatprivate.h" #include "gdkprivate.h" @@ -351,9 +352,14 @@ compute_drag_surface_size (GdkSurface *surface, int *height) { GdkX11Surface *impl = GDK_X11_SURFACE (surface); - int new_width = 0, new_height = 0; + GdkDragSurfaceSize size; + int new_width, new_height; - gdk_drag_surface_notify_compute_size (GDK_DRAG_SURFACE (surface), &new_width, &new_height); + gdk_drag_surface_size_init (&size); + gdk_drag_surface_notify_compute_size (GDK_DRAG_SURFACE (surface), &size); + + new_width = size.width; + new_height = size.height; if ((impl->last_computed_width != new_width || impl->last_computed_height != new_height) &&