aboutsummaryrefslogtreecommitdiff
path: root/swaybar/i3bar.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-07-20 11:45:47 -0400
committerGitHub <noreply@github.com>2018-07-20 11:45:47 -0400
commitb642d47c7f1f61993edd20200298fe971f636bbb (patch)
treebec87e642ae380995b5addc12624b83600489a60 /swaybar/i3bar.c
parent0a0b676f6457c0272264e9f0e9435a15b50d999b (diff)
parentbfcfabee2b7e6bd820929a3cb86c4981a6385ac7 (diff)
downloadsway-b642d47c7f1f61993edd20200298fe971f636bbb.tar.xz
Merge pull request #2313 from minus7/swaybar-hotspot-input-fix
swaybar: Fix scroll handling on workspace buttons
Diffstat (limited to 'swaybar/i3bar.c')
-rw-r--r--swaybar/i3bar.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/swaybar/i3bar.c b/swaybar/i3bar.c
index 78b183ad..ae37eeb9 100644
--- a/swaybar/i3bar.c
+++ b/swaybar/i3bar.c
@@ -192,11 +192,11 @@ bool i3bar_handle_readable(struct status_line *status) {
return redraw;
}
-void i3bar_block_send_click(struct status_line *status,
+enum hotspot_event_handling i3bar_block_send_click(struct status_line *status,
struct i3bar_block *block, int x, int y, enum x11_button button) {
wlr_log(WLR_DEBUG, "block %s clicked", block->name ? block->name : "(nil)");
if (!block->name || !status->i3bar_state.click_events) {
- return;
+ return HOTSPOT_PROCESS;
}
struct json_object *event_json = json_object_new_object();
@@ -215,6 +215,7 @@ void i3bar_block_send_click(struct status_line *status,
status_error(status, "[failed to write click event]");
}
json_object_put(event_json);
+ return HOTSPOT_IGNORE;
}
enum x11_button wl_button_to_x11_button(uint32_t button) {