mirror of
https://github.com/labwc/labwc.git
synced 2026-02-11 04:27:51 -05:00
view: Add view_evacuate_region() helper
v2: Modify asserts as suggested by Consolatis
This commit is contained in:
parent
0ca6c4c763
commit
d2fae39fe3
3 changed files with 13 additions and 6 deletions
11
src/view.c
11
src/view.c
|
|
@ -774,6 +774,17 @@ view_discover_output(struct view *view)
|
|||
view->output = view_output(view);
|
||||
}
|
||||
|
||||
void
|
||||
view_evacuate_region(struct view *view)
|
||||
{
|
||||
assert(view);
|
||||
assert(view->tiled_region);
|
||||
if (!view->tiled_region_evacuate) {
|
||||
view->tiled_region_evacuate = xstrdup(view->tiled_region->name);
|
||||
}
|
||||
view->tiled_region = NULL;
|
||||
}
|
||||
|
||||
void
|
||||
view_on_output_destroy(struct view *view)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue