]> git.mdlowis.com Git - proto/labwc.git/commitdiff
xdg: rename function to align with xwayland.c
authorJohan Malm <jgm323@gmail.com>
Sat, 6 Jan 2024 21:39:47 +0000 (21:39 +0000)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 8 Jan 2024 22:08:27 +0000 (22:08 +0000)
s/position_xdg_toplevel_view/set_initial_position/

src/xdg.c

index de106f8ae64e0eadada5984fa01a8d2f18359e27..6497837a7f6fcbffc889713042053b6ffde14071 100644 (file)
--- a/src/xdg.c
+++ b/src/xdg.c
@@ -415,7 +415,7 @@ lookup_view_by_xdg_toplevel(struct server *server,
 }
 
 static void
-position_xdg_toplevel_view(struct view *view)
+set_initial_position(struct view *view)
 {
        struct wlr_xdg_toplevel *parent_xdg_toplevel =
                xdg_toplevel_from_view(view)->parent;
@@ -520,7 +520,7 @@ xdg_toplevel_view_map(struct view *view)
                 * is called before map (try "foot --maximized").
                 */
                if (view_is_floating(view)) {
-                       position_xdg_toplevel_view(view);
+                       set_initial_position(view);
                }
 
                set_fullscreen_from_request(view, requested);