overlay: take into account <core><gap> for region overlay

This commit is contained in:
tokyo4j 2025-07-05 16:07:04 +09:00 committed by Johan Malm
parent 38e57891b5
commit 6e7c4a181e
3 changed files with 52 additions and 42 deletions

View file

@ -111,7 +111,8 @@ show_region_overlay(struct seat *seat, struct region *region)
inactivate_overlay(&seat->overlay);
seat->overlay.active.region = region;
show_overlay(seat, &seat->overlay.region_rect, &region->geo);
struct wlr_box geo = view_get_region_snap_box(NULL, region);
show_overlay(seat, &seat->overlay.region_rect, &geo);
}
static struct wlr_box get_edge_snap_box(enum view_edge edge, struct output *output)