summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2023-03-08 14:08:26 -0500
committerMatthias Clasen <mclasen@redhat.com>2023-03-08 14:08:26 -0500
commit4dafd102012ffe0a8969a41f4697fb4c236424f3 (patch)
tree97b60a86d91ecba6e1ba6327c4c798613f4f14cf
parent58af693e79c724fc210e80c96b48729c2253efc2 (diff)
downloadgtk+-matthiasc/gtk-dragsurface-resize.tar.gz
x11: Update for api changematthiasc/gtk-dragsurface-resize
-rw-r--r--gdk/x11/gdksurface-x11.c10
1 files 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) &&