mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 03:45:58 +01:00
Fix wlr_xdg_surface_surface_at for popups
This commit is contained in:
parent
7efd9885b6
commit
fa0be972bb
2 changed files with 4 additions and 4 deletions
|
@ -1644,8 +1644,8 @@ struct wlr_surface *wlr_xdg_surface_surface_at(
|
|||
wlr_xdg_surface_popup_get_position(popup, &popup_sx, &popup_sy);
|
||||
|
||||
struct wlr_surface *sub = wlr_xdg_surface_surface_at(popup,
|
||||
sx - popup_sx + popup->geometry.x,
|
||||
sy - popup_sy + popup->geometry.y,
|
||||
sx - popup_sx,
|
||||
sy - popup_sy,
|
||||
sub_x, sub_y);
|
||||
if (sub != NULL) {
|
||||
return sub;
|
||||
|
|
|
@ -1608,8 +1608,8 @@ struct wlr_surface *wlr_xdg_surface_v6_surface_at(
|
|||
wlr_xdg_surface_v6_popup_get_position(popup, &popup_sx, &popup_sy);
|
||||
|
||||
struct wlr_surface *sub = wlr_xdg_surface_v6_surface_at(popup,
|
||||
sx - popup_sx + popup->geometry.x,
|
||||
sy - popup_sy + popup->geometry.y,
|
||||
sx - popup_sx,
|
||||
sy - popup_sy,
|
||||
sub_x, sub_y);
|
||||
if (sub != NULL) {
|
||||
return sub;
|
||||
|
|
Loading…
Reference in a new issue