wayland: Remove struct member
authorBenjamin Otte <otte@redhat.com>
Fri, 21 Apr 2023 18:54:25 +0000 (20:54 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 26 Apr 2023 19:03:34 +0000 (21:03 +0200)
It's unused.

gdk/wayland/gdkdrag-wayland.c

index 234d7aa5cbd20682dbe9faa031a2f5e9eae74c44..dd3ea0de8b0c2210346fa80a6ae76a5c241e8fa5 100644 (file)
@@ -46,7 +46,6 @@ struct _GdkWaylandDrag
 {
   GdkDrag drag;
   GdkSurface *dnd_surface;
-  struct wl_surface *dnd_wl_surface;
   struct wl_data_source *data_source;
   struct wl_data_offer *offer;
   uint32_t serial;
@@ -383,7 +382,6 @@ _gdk_wayland_surface_drag_begin (GdkSurface         *surface,
   drag = GDK_DRAG (drag_wayland);
 
   drag_wayland->dnd_surface = gdk_wayland_display_create_surface (display, GDK_SURFACE_DRAG, NULL);
-  drag_wayland->dnd_wl_surface = gdk_wayland_surface_get_wl_surface (drag_wayland->dnd_surface);
 
   gdk_wayland_drag_create_data_source (drag);
 
@@ -395,7 +393,7 @@ _gdk_wayland_surface_drag_begin (GdkSurface         *surface,
   wl_data_device_start_drag (gdk_wayland_device_get_data_device (device),
                              drag_wayland->data_source,
                              gdk_wayland_surface_get_wl_surface (surface),
-                             drag_wayland->dnd_wl_surface,
+                             gdk_wayland_surface_get_wl_surface (drag_wayland->dnd_surface),
                              _gdk_wayland_seat_get_implicit_grab_serial (seat, NULL));
 
   cursor = gdk_drag_get_cursor (drag, gdk_drag_get_selected_action (drag));