diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-07-20 11:45:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-20 11:45:47 -0400 |
commit | b642d47c7f1f61993edd20200298fe971f636bbb (patch) | |
tree | bec87e642ae380995b5addc12624b83600489a60 /include/swaybar/bar.h | |
parent | 0a0b676f6457c0272264e9f0e9435a15b50d999b (diff) | |
parent | bfcfabee2b7e6bd820929a3cb86c4981a6385ac7 (diff) |
Merge pull request #2313 from minus7/swaybar-hotspot-input-fix
swaybar: Fix scroll handling on workspace buttons
Diffstat (limited to 'include/swaybar/bar.h')
-rw-r--r-- | include/swaybar/bar.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/swaybar/bar.h b/include/swaybar/bar.h index f1ff25b2..1cecea71 100644 --- a/include/swaybar/bar.h +++ b/include/swaybar/bar.h @@ -29,10 +29,15 @@ enum x11_button { FORWARD, }; +enum hotspot_event_handling { + HOTSPOT_IGNORE, + HOTSPOT_PROCESS, +}; + struct swaybar_hotspot { struct wl_list link; int x, y, width, height; - void (*callback)(struct swaybar_output *output, + enum hotspot_event_handling (*callback)(struct swaybar_output *output, int x, int y, enum x11_button button, void *data); void (*destroy)(void *data); void *data; |