mirror of
https://github.com/labwc/labwc.git
synced 2026-04-07 08:21:20 -04:00
view: honor placement policy in more scenarios
This commit is contained in:
parent
5238dcaa08
commit
1211c43a47
3 changed files with 9 additions and 22 deletions
|
|
@ -769,15 +769,12 @@ set_initial_position(struct view *view,
|
|||
/* allow_cursor */ true, rc.placement_policy);
|
||||
} else {
|
||||
/*
|
||||
* View is maximized/fullscreen. Center the
|
||||
* View is maximized/fullscreen. Place the
|
||||
* stored natural geometry without actually
|
||||
* moving the view.
|
||||
*/
|
||||
view_compute_centered_position(view, NULL,
|
||||
view->natural_geometry.width,
|
||||
view->natural_geometry.height,
|
||||
&view->natural_geometry.x,
|
||||
&view->natural_geometry.y);
|
||||
view_compute_position_by_policy(view, &view->natural_geometry,
|
||||
/* allow_cursor */ true, rc.placement_policy);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue