wayland: Stop using gdk_surface_new_temp

No need to roundtrip through the frontend to create
one of our own surfaces.
This commit is contained in:
Matthias Clasen 2020-10-07 20:12:35 -04:00
parent ba108f261f
commit e602d67e59

View File

@ -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;