From 147a88260a74f536e1a1e513f0f8087d02982b00 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 16 Jul 2016 09:09:22 -0400 Subject: Fix #753 --- swaybar/bar.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'swaybar') diff --git a/swaybar/bar.c b/swaybar/bar.c index 82e136e4..9009e1ff 100644 --- a/swaybar/bar.c +++ b/swaybar/bar.c @@ -58,8 +58,12 @@ struct output *new_output(const char *name) { return output; } -static void mouse_button_notify(struct window *window, int x, int y, uint32_t button) { - sway_log(L_DEBUG, "Mouse button %d clicked at %d %d\n", button, x, y); +static void mouse_button_notify(struct window *window, int x, int y, + uint32_t button, uint32_t state_w) { + sway_log(L_DEBUG, "Mouse button %d clicked at %d %d %d\n", button, x, y, state_w); + if (!state_w) { + return; + } struct output *clicked_output = NULL; for (int i = 0; i < swaybar.outputs->length; i++) { -- cgit v1.2.3-54-g00ecf