[gtk/present-toplevel-2: 17/70] x11: Stop using gdk_surface_maximize



commit 45f161aa07108172743468da16f2ea64c00c727b
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Feb 29 13:11:53 2020 -0500

    x11: Stop using gdk_surface_maximize
    
    Just use the backend function directly.

 gdk/x11/gdksurface-x11.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/x11/gdksurface-x11.c b/gdk/x11/gdksurface-x11.c
index c624608558..a53e880f2a 100644
--- a/gdk/x11/gdksurface-x11.c
+++ b/gdk/x11/gdksurface-x11.c
@@ -3890,7 +3890,7 @@ check_maximize (MoveResizeData *mv_resize,
   y = mv_resize->moveresize_orig_y + (y_root - mv_resize->moveresize_y);
 
   if (y < 10)
-    gdk_surface_maximize (mv_resize->moveresize_surface);
+    gdk_x11_surface_maximize (mv_resize->moveresize_surface);
 }
 
 static void
@@ -3913,7 +3913,7 @@ check_unmaximize (MoveResizeData *mv_resize,
   dy = y_root - mv_resize->moveresize_y;
 
   if (ABS (dx) > 20 || ABS (dy) > 20)
-    gdk_surface_unmaximize (mv_resize->moveresize_surface);
+    gdk_x11_surface_unmaximize (mv_resize->moveresize_surface);
 }
 
 static void


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