mirror of
https://github.com/labwc/labwc.git
synced 2026-02-08 10:06:59 -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
|
|
@ -129,9 +129,11 @@ void view_move_resize(struct view *view, struct wlr_box geo);
|
|||
void view_move(struct view *view, int x, int y);
|
||||
void view_moved(struct view *view);
|
||||
void view_minimize(struct view *view, bool minimized);
|
||||
struct output *view_output(struct view *view);
|
||||
void view_store_natural_geometry(struct view *view);
|
||||
/* output is optional, defaults to current nearest output */
|
||||
void view_center(struct view *view, struct output *output);
|
||||
void view_center(struct view *view, struct output *output,
|
||||
const struct wlr_box *ref);
|
||||
void view_restore_to(struct view *view, struct wlr_box geometry);
|
||||
void view_set_untiled(struct view *view);
|
||||
void view_maximize(struct view *view, bool maximize,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue