mirror of
https://github.com/labwc/labwc.git
synced 2026-04-04 07:15:41 -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
|
|
@ -123,10 +123,8 @@ do_late_positioning(struct view *view)
|
|||
/* Reposition the view while anchoring it to cursor */
|
||||
interactive_anchor_to_cursor(server, &view->pending);
|
||||
} else {
|
||||
/* TODO: smart placement? */
|
||||
view_compute_centered_position(view, NULL,
|
||||
view->pending.width, view->pending.height,
|
||||
&view->pending.x, &view->pending.y);
|
||||
view_compute_position_by_policy(view, &view->pending,
|
||||
/* allow_cursor */ true, rc.placement_policy);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue