mirror of
https://github.com/labwc/labwc.git
synced 2026-02-11 04:27:51 -05:00
feat: under-cursor window placement
With under-cursor placement, new top-level windows will be centered under the cursor rather than centered on the active view.
This commit is contained in:
parent
ce3c5ab958
commit
ef62d47ad1
8 changed files with 51 additions and 8 deletions
|
|
@ -393,6 +393,13 @@ void view_store_natural_geometry(struct view *view);
|
|||
* within; if NULL, view is centered within usable area of its output
|
||||
*/
|
||||
void view_center(struct view *view, const struct wlr_box *ref);
|
||||
|
||||
/**
|
||||
* view_place_initial - apply initial placement strategy to view
|
||||
* @view: view to be placed
|
||||
*/
|
||||
void view_place_initial(struct view *view);
|
||||
|
||||
void view_restore_to(struct view *view, struct wlr_box geometry);
|
||||
void view_set_untiled(struct view *view);
|
||||
void view_maximize(struct view *view, enum view_axis axis,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue