[gtk/matthiasc/for-master: 4/6] broadway: Stop using gdk_surface_new_temp




commit 27ef9d9e5e157aaa289eeb45f531ccaf2ef6978a
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Oct 7 21:04:05 2020 -0400

    broadway: Stop using gdk_surface_new_temp
    
    No need to roundtrip through the frontend to create
    one of our own surfaces.

 gdk/broadway/gdksurface-broadway.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gdk/broadway/gdksurface-broadway.c b/gdk/broadway/gdksurface-broadway.c
index 9494189736..d9e45ad077 100644
--- a/gdk/broadway/gdksurface-broadway.c
+++ b/gdk/broadway/gdksurface-broadway.c
@@ -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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]