aboutsummaryrefslogtreecommitdiff
path: root/swaybar/bar.c
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2018-07-15 20:16:37 -0400
committerFurkan Sahin <furkan-dev@proton.me>2018-07-15 20:16:37 -0400
commit8c9674858abffbd416156bec5ce058ea64b4408b (patch)
tree1e2c2a54f588c4931cbf8b0cf2820029aee82bb4 /swaybar/bar.c
parente4c2193f0bffbe0f1ccef3f02f02adf2bda194bb (diff)
make hotspot callback take an x11 button id
Diffstat (limited to 'swaybar/bar.c')
-rw-r--r--swaybar/bar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybar/bar.c b/swaybar/bar.c
index f03c5aea..1186d1e5 100644
--- a/swaybar/bar.c
+++ b/swaybar/bar.c
@@ -147,7 +147,7 @@ static void wl_pointer_button(void *data, struct wl_pointer *wl_pointer,
&& x < hotspot->x + hotspot->width
&& y < hotspot->y + hotspot->height) {
hotspot->callback(output, pointer->x, pointer->y,
- button, hotspot->data);
+ wl_button_to_x11_button(button), hotspot->data);
}
}
}