sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 55577498c0b9b3e330351f14704c4bbb0ea10dff
parent 700510b45e22e6021bcfa08c1c05d73f9bacb6eb
Author: Ryan Dwyer <ryandwyer1@gmail.com>
Date:   Tue,  1 May 2018 19:50:54 +1000

Allow clicking view decorations to focus view

Diffstat:
Msway/tree/container.c | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/sway/tree/container.c b/sway/tree/container.c @@ -455,6 +455,16 @@ struct sway_container *container_at(struct sway_container *parent, *surface = _surface; return swayc; } + // Check the view's decorations + struct wlr_box swayc_box = { + .x = swayc->x, + .y = swayc->y, + .width = swayc->width, + .height = swayc->height, + }; + if (wlr_box_contains_point(&swayc_box, ox, oy)) { + return swayc; + } } else { list_cat(queue, swayc->children); }