forked from AuroraMiddleware/gtk
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:
parent
ba108f261f
commit
e602d67e59
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user