broadway: 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 21:04:05 -04:00
parent 839baf2bef
commit 27ef9d9e5e

View File

@@ -1101,11 +1101,14 @@ create_moveresize_surface (MoveResizeData *mv_resize,
GdkGrabStatus status;
GdkSeat *seat;
GdkDevice *pointer;
GdkRectangle rect = { -100, -100, 1, 1 };
g_assert (mv_resize->moveresize_emulation_surface == NULL);
mv_resize->moveresize_emulation_surface = gdk_surface_new_temp (mv_resize->display, &rect);
mv_resize->moveresize_emulation_surface =
_gdk_broadway_display_create_surface (mv_resize->display,
GDK_SURFACE_TEMP,
NULL,
-100, -100, 1, 1);
gdk_broadway_surface_show (mv_resize->moveresize_emulation_surface, FALSE);