aboutsummaryrefslogtreecommitdiffstats
path: root/swaybar
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2016-07-16 09:09:22 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2016-07-16 09:09:22 -0400
commit147a88260a74f536e1a1e513f0f8087d02982b00 (patch)
treebdd978690510d35a170399ee0d078c6a4ac5f64b /swaybar
parentMerge pull request #752 from deklov/bar-scroll-02 (diff)
downloadsway-147a88260a74f536e1a1e513f0f8087d02982b00.tar.gz
sway-147a88260a74f536e1a1e513f0f8087d02982b00.tar.zst
sway-147a88260a74f536e1a1e513f0f8087d02982b00.zip
Fix #753
Diffstat (limited to 'swaybar')
-rw-r--r--swaybar/bar.c8
1 files changed, 6 insertions, 2 deletions
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) {
58 return output; 58 return output;
59} 59}
60 60
61static void mouse_button_notify(struct window *window, int x, int y, uint32_t button) { 61static void mouse_button_notify(struct window *window, int x, int y,
62 sway_log(L_DEBUG, "Mouse button %d clicked at %d %d\n", button, x, y); 62 uint32_t button, uint32_t state_w) {
63 sway_log(L_DEBUG, "Mouse button %d clicked at %d %d %d\n", button, x, y, state_w);
64 if (!state_w) {
65 return;
66 }
63 67
64 struct output *clicked_output = NULL; 68 struct output *clicked_output = NULL;
65 for (int i = 0; i < swaybar.outputs->length; i++) { 69 for (int i = 0; i < swaybar.outputs->length; i++) {