mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
view: allow overriding of cursor placement policy
This commit is contained in:
parent
8517254705
commit
099929cf46
4 changed files with 5 additions and 5 deletions
|
|
@ -728,9 +728,9 @@ view_center(struct view *view, const struct wlr_box *ref)
|
|||
}
|
||||
|
||||
void
|
||||
view_place_initial(struct view *view)
|
||||
view_place_initial(struct view *view, bool allow_cursor)
|
||||
{
|
||||
if (rc.placement_policy == LAB_PLACE_CURSOR) {
|
||||
if (allow_cursor && rc.placement_policy == LAB_PLACE_CURSOR) {
|
||||
view_move_to_cursor(view);
|
||||
return;
|
||||
} else if (rc.placement_policy == LAB_PLACE_AUTOMATIC) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue