commit 55d0e508d8c97e69f2a2320d58b82a377fe4f3f3 parent 09e7e5726bb41cb7fa44f89bd1bc95c4229059e7 Author: Giancarlo Razzolini <grazzolini@users.noreply.github.com> Date: Fri, 25 Oct 2024 15:25:49 -0300 Apply suggestions from code review Co-authored-by: Demi Marie Obenour <demiobenour@gmail.com> Diffstat:
| M | swaybar/tray/dbusmenu.c | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/swaybar/tray/dbusmenu.c b/swaybar/tray/dbusmenu.c @@ -335,8 +335,8 @@ static bool is_in_hotspot(struct swaybar_dbusmenu_hotspot *hotspot, int x, int y return false; } - if (hotspot->x <= x && x < hotspot->x + hotspot->width && hotspot->y <= y && - y < hotspot->y + hotspot->height) { + if (hotspot->x <= x && x - hotspot->x < hotspot->width && hotspot->y <= y && + y - hotspot->y < hotspot->height) { return true; }