diff options
author | Kirill Primak <vyivel@eclair.cafe> | 2022-11-07 23:47:09 +0300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-11-07 21:06:12 +0000 |
commit | 388de59df31fbb90938c4874920de82a76d49606 (patch) | |
tree | 62919574bd33608a8ab44dc16aeec13a21ebfc20 | |
parent | b7623694ac5cde4cec8e434ee329b84712fcb965 (diff) |
compositor: use the correct input region
-rw-r--r-- | types/wlr_compositor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/types/wlr_compositor.c b/types/wlr_compositor.c index da00e76d..5e6de244 100644 --- a/types/wlr_compositor.c +++ b/types/wlr_compositor.c @@ -815,7 +815,8 @@ bool wlr_surface_point_accepts_input(struct wlr_surface *surface, double sx, double sy) { return sx >= 0 && sx < surface->current.width && sy >= 0 && sy < surface->current.height && - pixman_region32_contains_point(&surface->current.input, floor(sx), floor(sy), NULL); + pixman_region32_contains_point(&surface->input_region, + floor(sx), floor(sy), NULL); } struct wlr_surface *wlr_surface_surface_at(struct wlr_surface *surface, |