xdg: rename function to align with xwayland.c

s/position_xdg_toplevel_view/set_initial_position/
This commit is contained in:
Johan Malm 2024-01-06 21:39:47 +00:00 committed by Johan Malm
parent c646c7bd1b
commit 78418b6dd3

View file

@ -415,7 +415,7 @@ lookup_view_by_xdg_toplevel(struct server *server,
} }
static void static void
position_xdg_toplevel_view(struct view *view) set_initial_position(struct view *view)
{ {
struct wlr_xdg_toplevel *parent_xdg_toplevel = struct wlr_xdg_toplevel *parent_xdg_toplevel =
xdg_toplevel_from_view(view)->parent; xdg_toplevel_from_view(view)->parent;
@ -520,7 +520,7 @@ xdg_toplevel_view_map(struct view *view)
* is called before map (try "foot --maximized"). * is called before map (try "foot --maximized").
*/ */
if (view_is_floating(view)) { if (view_is_floating(view)) {
position_xdg_toplevel_view(view); set_initial_position(view);
} }
set_fullscreen_from_request(view, requested); set_fullscreen_from_request(view, requested);