resize by dragging gaps
This commit is contained in:
parent
23910437c4
commit
ff677c9255
|
@ -350,11 +350,12 @@ static struct sway_container *view_container_at(struct sway_node *parent,
|
||||||
}
|
}
|
||||||
|
|
||||||
struct sway_container *container = parent->sway_container;
|
struct sway_container *container = parent->sway_container;
|
||||||
|
int gaps = container->current.workspace->gaps_inner;
|
||||||
struct wlr_box box = {
|
struct wlr_box box = {
|
||||||
.x = container->pending.x,
|
.x = container->pending.x - (gaps / 2),
|
||||||
.y = container->pending.y,
|
.y = container->pending.y - (gaps / 2),
|
||||||
.width = container->pending.width,
|
.width = container->pending.width + gaps,
|
||||||
.height = container->pending.height,
|
.height = container->pending.height + gaps,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (wlr_box_contains_point(&box, lx, ly)) {
|
if (wlr_box_contains_point(&box, lx, ly)) {
|
||||||
|
|
Loading…
Reference in a new issue