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

@ -264,8 +264,9 @@ handle_commit(struct wl_listener *listener, void *data)
/*
* The pending size will be empty in two cases:
* (1) when the view is first mapped
* (2) when leaving fullscreen or un-maximizing,
* if natural geometry wasn't known
* (2) when leaving fullscreen or un-maximizing, if the view
* was initially fullscreen/maximized and the natural
* geometry isn't known yet
*/
if (wlr_box_empty(&view->pending) && !wlr_box_empty(&size)) {
view->pending.width = size.width;