summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-07-04 09:27:06 +0200
committerMatthias Clasen <mclasen@redhat.com>2018-07-12 13:02:42 +0200
commitc73cb2c1548cc2472c4a62f57ff65ed7299edf32 (patch)
tree6b9bb2a38fe39d85cbaddabe9543193e0848c8ae
parenta756caa1062ef8111321c4bc516136e1ca5aa1cd (diff)
downloadgtk+-c73cb2c1548cc2472c4a62f57ff65ed7299edf32.tar.gz
wayland: Drop an unused field
Nothing was using the foreign_dnd_surface anymore, so no need to create it in the first place.
-rw-r--r--gdk/wayland/gdkdevice-wayland.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index 97201fd1a4..546d600ff8 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -250,9 +250,6 @@ struct _GdkWaylandSeat
GdkDrag *drag;
GdkDrop *drop;
- /* Source/dest for non-local dnd */
- GdkSurface *foreign_dnd_surface;
-
/* Some tracking on gesture events */
guint gesture_n_fingers;
gdouble gesture_scale;
@@ -4562,12 +4559,6 @@ static const struct wl_surface_listener pointer_surface_listener = {
pointer_surface_leave
};
-static GdkSurface *
-create_foreign_dnd_surface (GdkDisplay *display)
-{
- return gdk_surface_new_popup (display, &(GdkRectangle) { 0, 0, 1, 1 });
-}
-
static void
gdk_wayland_pointer_data_finalize (GdkWaylandPointerData *pointer)
{
@@ -4602,7 +4593,6 @@ gdk_wayland_seat_finalize (GObject *object)
g_clear_object (&seat->clipboard);
g_clear_object (&seat->primary_clipboard);
g_hash_table_destroy (seat->touches);
- gdk_surface_destroy (seat->foreign_dnd_surface);
zwp_tablet_seat_v2_destroy (seat->wp_tablet_seat);
stop_key_repeat (seat);
@@ -4944,7 +4934,6 @@ _gdk_wayland_display_create_seat (GdkWaylandDisplay *display_wayland,
seat->keymap = _gdk_wayland_keymap_new (display);
seat->display = display;
seat->touches = g_hash_table_new_full (NULL, NULL, NULL, (GDestroyNotify) g_free);
- seat->foreign_dnd_surface = create_foreign_dnd_surface (display);
seat->wl_seat = wl_seat;
wl_seat_add_listener (seat->wl_seat, &seat_listener, seat);