mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2025-02-16 18:12:09 +01:00
Skip assign when sub_x or sub_y is NULL in wlr_surface_surface_at
This commit is contained in:
parent
447835afc1
commit
aa9ea95e1f
1 changed files with 6 additions and 2 deletions
|
@ -1016,8 +1016,12 @@ struct wlr_surface *wlr_surface_surface_at(struct wlr_surface *surface,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wlr_surface_point_accepts_input(surface, sx, sy)) {
|
if (wlr_surface_point_accepts_input(surface, sx, sy)) {
|
||||||
*sub_x = sx;
|
if (sub_x) {
|
||||||
*sub_y = sy;
|
*sub_x = sx;
|
||||||
|
}
|
||||||
|
if (sub_y) {
|
||||||
|
*sub_y = sy;
|
||||||
|
}
|
||||||
return surface;
|
return surface;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue