From e602d67e59364ec6cba82c5c337f15846fe8a8ea Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 7 Oct 2020 20:12:35 -0400 Subject: [PATCH] wayland: Stop using gdk_surface_new_temp No need to roundtrip through the frontend to create one of our own surfaces. --- gdk/wayland/gdksurface-wayland.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c index 72cbc8c2d7..4a54185dcc 100644 --- a/gdk/wayland/gdksurface-wayland.c +++ b/gdk/wayland/gdksurface-wayland.c @@ -4457,8 +4457,10 @@ create_dnd_surface (GdkDisplay *display) { GdkSurface *surface; - surface = gdk_surface_new_temp (display, &(GdkRectangle){ 0, 0, 100, 100 }); - + surface = _gdk_wayland_display_create_surface (display, + GDK_SURFACE_TEMP, + NULL, + 0, 0, 100, 100); GDK_WAYLAND_SURFACE (surface)->is_drag_surface = TRUE; return surface;