view: add/improve some comments

This commit is contained in:
John Lindgren 2026-02-24 11:29:00 -05:00 committed by Hiroaki Yamamoto
parent 3f223fe5b0
commit df73a97efa
4 changed files with 31 additions and 7 deletions

View file

@ -772,6 +772,14 @@ set_initial_position(struct view *view,
* View is maximized/fullscreen. Place the
* stored natural geometry without actually
* moving the view.
*
* FIXME: this positioning will be slightly off
* since it uses border widths computed for the
* current (non-floating) state of the view.
* Possible fixes would be (1) adjust the natural
* geometry earlier, while still floating, or
* (2) add a variant of ssd_thickness() that
* disregards the current view state.
*/
view_compute_position_by_policy(view, &view->natural_geometry,
/* allow_cursor */ true, rc.placement_policy);