mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -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
|
|
@ -219,12 +219,7 @@ regions_evacuate_output(struct output *output)
|
|||
wl_list_for_each(view, &output->server->views, link) {
|
||||
wl_list_for_each(region, &output->regions, link) {
|
||||
if (view->tiled_region == region) {
|
||||
if (!view->tiled_region_evacuate) {
|
||||
view->tiled_region_evacuate =
|
||||
xstrdup(region->name);
|
||||
}
|
||||
/* Prevent carrying around a dangling pointer */
|
||||
view->tiled_region = NULL;
|
||||
view_evacuate_region(view);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue