mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
compositor: use the correct input region
This commit is contained in:
parent
b7623694ac
commit
388de59df3
1 changed files with 2 additions and 1 deletions
|
@ -815,7 +815,8 @@ bool wlr_surface_point_accepts_input(struct wlr_surface *surface,
|
||||||
double sx, double sy) {
|
double sx, double sy) {
|
||||||
return sx >= 0 && sx < surface->current.width &&
|
return sx >= 0 && sx < surface->current.width &&
|
||||||
sy >= 0 && sy < surface->current.height &&
|
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,
|
struct wlr_surface *wlr_surface_surface_at(struct wlr_surface *surface,
|
||||||
|
|
Loading…
Reference in a new issue