commit 43bd8dc437866ce1e6ba8e276af511a9ddebe71d
parent 06fcebc542a919ab3ab73fad67088ec454713aaa
Author: Kirill Chibisov <wchibisovkirill@gmail.com>
Date: Wed, 23 Oct 2019 18:08:08 +0300
Fix tiled containers resize with mouse
Fixes regression introduced in 2c1a11016ccb7646a74de51eff003c18e5aa7902
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sway/input/seatop_default.c b/sway/input/seatop_default.c
@@ -59,7 +59,7 @@ static bool edge_is_external(struct sway_container *cont, enum wlr_edges edge) {
static enum wlr_edges find_edge(struct sway_container *cont,
struct wlr_surface *surface, struct sway_cursor *cursor) {
- if (!cont->view || cont->view->surface != surface) {
+ if (!cont->view || (surface && cont->view->surface != surface)) {
return WLR_EDGE_NONE;
}
if (cont->border == B_NONE || !cont->border_thickness ||