mirror of
https://github.com/labwc/labwc.git
synced 2025-11-01 22:58:47 -04:00
overlay: take into account <core><gap> for region overlay
This commit is contained in:
parent
38e57891b5
commit
6e7c4a181e
3 changed files with 52 additions and 42 deletions
|
|
@ -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, ®ion->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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue