mirror of
https://github.com/labwc/labwc.git
synced 2025-11-30 06:59:52 -05:00
overlay: refactor
- Use a single `lab_scene_rect` for both overlay background and outlines,
like I described in the TODO comment in ffd4005.
- Simplify the resource management by destroying the overlay tree when
it's hidden. I think its overhead is pretty minimal.
- Share a single `lab_scene_rect` for both region/edge overlays.
This commit is contained in:
parent
78d47c5c37
commit
66e26cd28a
8 changed files with 51 additions and 154 deletions
|
|
@ -166,7 +166,7 @@ regions_destroy(struct seat *seat, struct wl_list *regions)
|
|||
wl_list_for_each_safe(region, region_tmp, regions, link) {
|
||||
wl_list_remove(®ion->link);
|
||||
if (seat && seat->overlay.active.region == region) {
|
||||
overlay_hide(seat);
|
||||
overlay_finish(seat);
|
||||
}
|
||||
zfree(region->name);
|
||||
zfree(region);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue