[gtk/wip/matthiasc/popup4: 69/93] broadway: Stop using gdk_surface_new_temp



commit c29020e07f81b30c78d166dfed9aafdacf560d05
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Apr 20 01:29:25 2019 +0000

    broadway: Stop using gdk_surface_new_temp
    
    This is in preparation for adding a proper
    popup surface type.

 gdk/broadway/gdksurface-broadway.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gdk/broadway/gdksurface-broadway.c b/gdk/broadway/gdksurface-broadway.c
index a5f6600fcd..b788e78896 100644
--- a/gdk/broadway/gdksurface-broadway.c
+++ b/gdk/broadway/gdksurface-broadway.c
@@ -212,7 +212,7 @@ connect_frame_clock (GdkSurface *surface)
 }
 
 void
-_gdk_broadway_display_create_surface_impl (GdkDisplay    *display,
+_gdk_broadway_display_create_surface_impl (GdkDisplay     *display,
                                            GdkSurface     *surface,
                                            GdkSurface     *real_parent,
                                            GdkSurfaceAttr *attributes)
@@ -1077,10 +1077,11 @@ 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);
+  mv_resize->moveresize_emulation_surface = gdk_surface_new_popup (mv_resize->display, &rect);
 
   gdk_surface_show (mv_resize->moveresize_emulation_surface);
 


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