mirror of
https://github.com/labwc/labwc.git
synced 2025-11-01 22:58:47 -04:00
view: Add view_set_untiled()
This commit is contained in:
parent
c67c6691ac
commit
e79c95489a
3 changed files with 12 additions and 3 deletions
10
src/view.c
10
src/view.c
|
|
@ -447,7 +447,7 @@ set_maximized(struct view *view, bool maximized)
|
|||
|
||||
/*
|
||||
* Un-maximize view and move it to specific geometry. Does not reset
|
||||
* tiled state (set view->tiled = 0 manually if you want that).
|
||||
* tiled state (use view_set_untiled() if you want that).
|
||||
*/
|
||||
void
|
||||
view_restore_to(struct view *view, struct wlr_box geometry)
|
||||
|
|
@ -462,6 +462,14 @@ view_restore_to(struct view *view, struct wlr_box geometry)
|
|||
view_move_resize(view, geometry);
|
||||
}
|
||||
|
||||
/* Reset tiled state of view without changing geometry */
|
||||
void
|
||||
view_set_untiled(struct view *view)
|
||||
{
|
||||
assert(view);
|
||||
view->tiled = VIEW_EDGE_INVALID;
|
||||
}
|
||||
|
||||
void
|
||||
view_maximize(struct view *view, bool maximize, bool store_natural_geometry)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue