From 117586c872e355b730f411958d1e31deace23f07 Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Sat, 7 Oct 2017 16:53:10 -0400 Subject: [PATCH] bug: fix a subsurface location calculation --- rootston/desktop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootston/desktop.c b/rootston/desktop.c index 691d5809..e8b6b0e9 100644 --- a/rootston/desktop.c +++ b/rootston/desktop.c @@ -91,7 +91,7 @@ static struct wlr_subsurface *subsurface_at(struct wlr_surface *surface, int sub_width = subsurface->surface->current->buffer_width; int sub_height = subsurface->surface->current->buffer_height; if ((sx > _sub_x && sx < _sub_x + sub_width) && - (sy > _sub_y && sub_y < sub_y + sub_height)) { + (sy > _sub_y && sy < _sub_y + sub_height)) { *sub_x = _sub_x; *sub_y = _sub_y; return subsurface;