feat: under-cursor window placement

With under-cursor placement, new top-level windows will be centered
under the cursor rather than centered on the active view.
This commit is contained in:
Andrew J. Hesford 2023-12-10 21:00:05 -05:00 committed by Johan Malm
parent ce3c5ab958
commit ef62d47ad1
8 changed files with 51 additions and 8 deletions

View file

@ -517,7 +517,7 @@ set_initial_position(struct view *view,
}
} else {
if (view_is_floating(view)) {
view_center(view, NULL);
view_place_initial(view);
} else {
/*
* View is maximized/fullscreen. Center the