summaryrefslogtreecommitdiff
path: root/swaybar/input.c
diff options
context:
space:
mode:
authorBrian Ashworth <[email protected]>2018-12-04 23:55:55 -0500
committerGitHub <[email protected]>2018-12-04 23:55:55 -0500
commit6ccc836ebf282a1ffe5c19fb6ff2e2b55d2f21e6 (patch)
tree97290bcc79a26e09291d87c549afc1cb0392dabd /swaybar/input.c
parentbca21ee0cf504f7878a5a2a80cc30cb09e5d5509 (diff)
parent24e8ba048aef4751c6fa1d5982ee634f921e6cf6 (diff)
Merge pull request #3252 from hvenev/swaybar-rel
Add relative coordinates in JSON for i3bar click events
Diffstat (limited to 'swaybar/input.c')
-rw-r--r--swaybar/input.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/swaybar/input.c b/swaybar/input.c
index 263d0253..1f8491f6 100644
--- a/swaybar/input.c
+++ b/swaybar/input.c
@@ -133,8 +133,8 @@ static void wl_pointer_button(void *data, struct wl_pointer *wl_pointer,
&& y >= hotspot->y
&& x < hotspot->x + hotspot->width
&& y < hotspot->y + hotspot->height) {
- if (HOTSPOT_IGNORE == hotspot->callback(output, pointer->x, pointer->y,
- wl_button_to_x11_button(button), hotspot->data)) {
+ if (HOTSPOT_IGNORE == hotspot->callback(output, hotspot,
+ pointer->x, pointer->y, wl_button_to_x11_button(button), hotspot->data)) {
return;
}
}
@@ -166,8 +166,8 @@ static void wl_pointer_axis(void *data, struct wl_pointer *wl_pointer,
&& y >= hotspot->y
&& x < hotspot->x + hotspot->width
&& y < hotspot->y + hotspot->height) {
- if (HOTSPOT_IGNORE == hotspot->callback(
- output, pointer->x, pointer->y, button, hotspot->data)) {
+ if (HOTSPOT_IGNORE == hotspot->callback(output, hotspot,
+ pointer->x, pointer->y, button, hotspot->data)) {
return;
}
}