summaryrefslogtreecommitdiffstats
path: root/swaybar/bar.c
diff options
context:
space:
mode:
authorLibravatar Peter Rice <peter@peterrice.xyz>2018-07-15 20:16:37 -0400
committerLibravatar Peter Rice <peter@peterrice.xyz>2018-07-16 18:55:04 -0400
commit79a998849b8cedc9fccddfb31e4d1c99d1c17ff7 (patch)
tree1e2c2a54f588c4931cbf8b0cf2820029aee82bb4 /swaybar/bar.c
parentMerge pull request #2280 from ianyfan/leaks (diff)
downloadsway-79a998849b8cedc9fccddfb31e4d1c99d1c17ff7.tar.gz
sway-79a998849b8cedc9fccddfb31e4d1c99d1c17ff7.tar.zst
sway-79a998849b8cedc9fccddfb31e4d1c99d1c17ff7.zip
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,
147 && x < hotspot->x + hotspot->width 147 && x < hotspot->x + hotspot->width
148 && y < hotspot->y + hotspot->height) { 148 && y < hotspot->y + hotspot->height) {
149 hotspot->callback(output, pointer->x, pointer->y, 149 hotspot->callback(output, pointer->x, pointer->y,
150 button, hotspot->data); 150 wl_button_to_x11_button(button), hotspot->data);
151 } 151 }
152 } 152 }
153} 153}