mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
xdg: Use view_center() for parent-relative centering
- Add optional struct wlr_box* ref argument to view_center() - Perform margin adjustment within view_center() - Expose view_output() to fetch parent's output
This commit is contained in:
parent
612c296d52
commit
74bc16910a
4 changed files with 26 additions and 32 deletions
|
|
@ -440,7 +440,8 @@ set_initial_position(struct view *view,
|
|||
/* Just make sure the view is on-screen */
|
||||
view_adjust_for_layout_change(view);
|
||||
} else {
|
||||
view_center(view, output_from_cursor_coords(view->server));
|
||||
view_center(view, output_from_cursor_coords(view->server),
|
||||
NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue