[gtk/wip/matthiasc/popup5: 148/234] broadway: Stop using gdk_surface_new_temp



commit 35d4014e92503950dead057f517d6dce752fde10
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 299c3bff1b..ba798084fe 100644
--- a/gdk/broadway/gdksurface-broadway.c
+++ b/gdk/broadway/gdksurface-broadway.c
@@ -215,7 +215,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)
@@ -1080,10 +1080,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]