aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-10-07 17:03:14 -0400
committerGitHub <noreply@github.com>2017-10-07 17:03:14 -0400
commit906ed92e31772d33ae06693aaa014b3843b0ae24 (patch)
tree696dfa3a7c11e81460a0fb6cebd22fadb96dc759
parent321c26c2a3c77ddba52e1a6194669328e473fdb4 (diff)
parent117586c872e355b730f411958d1e31deace23f07 (diff)
Merge pull request #235 from acrisci/bug/subsurface-location
bug: subsurface location calculation
-rw-r--r--rootston/desktop.c2
1 files changed, 1 insertions, 1 deletions
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;