mirror of
https://github.com/labwc/labwc.git
synced 2026-04-04 07:15:41 -04:00
view: add/improve some comments
This commit is contained in:
parent
3f223fe5b0
commit
df73a97efa
4 changed files with 31 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue