aboutsummaryrefslogtreecommitdiff
path: root/swaybar/i3bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'swaybar/i3bar.c')
-rw-r--r--swaybar/i3bar.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/swaybar/i3bar.c b/swaybar/i3bar.c
index 116c8f6e..8bca1bf9 100644
--- a/swaybar/i3bar.c
+++ b/swaybar/i3bar.c
@@ -259,31 +259,6 @@ bool i3bar_handle_readable(struct status_line *status) {
}
}
-static uint32_t event_to_x11_button(uint32_t event) {
- switch (event) {
- case BTN_LEFT:
- return 1;
- case BTN_MIDDLE:
- return 2;
- case BTN_RIGHT:
- return 3;
- case SWAY_SCROLL_UP:
- return 4;
- case SWAY_SCROLL_DOWN:
- return 5;
- case SWAY_SCROLL_LEFT:
- return 6;
- case SWAY_SCROLL_RIGHT:
- return 7;
- case BTN_SIDE:
- return 8;
- case BTN_EXTRA:
- return 9;
- default:
- return 0;
- }
-}
-
enum hotspot_event_handling i3bar_block_send_click(struct status_line *status,
struct i3bar_block *block, int x, int y, int rx, int ry, int w, int h,
uint32_t button) {