action: allow configurable policy in AutoPlace action

Closes: #1784.
This commit is contained in:
Andrew J. Hesford 2024-05-07 09:46:05 -04:00 committed by Johan Malm
parent 208f383c66
commit 89589f17c4
8 changed files with 60 additions and 21 deletions

View file

@ -571,7 +571,8 @@ set_initial_position(struct view *view,
view_constrain_size_to_that_of_usable_area(view);
if (view_is_floating(view)) {
view_place_initial(view, /* allow_cursor */ true);
view_place_by_policy(view,
/* allow_cursor */ true, rc.placement_policy);
} else {
/*
* View is maximized/fullscreen. Center the