mirror of
https://github.com/swaywm/sway.git
synced 2026-02-28 01:41:02 -05:00
This adds handling for scroll events (e.g. mouse wheel) to the hotspot
callback equivalent to the fallback in `process_discrete_scroll`.
While this may seem redundant (and in many cases, it is), it changes
the priority when the user has Button4/Button5 bindsyms on the bar.
Before this commit:
* Scrolling on unused bar space calls the user's bindsyms.
* Scrolling over the workspaces *still* calls the user's bindsyms.
After this commit:
* Scrolling on unused bar space calls the user's bindsyms.
* Scrolling over the workspaces moves to the previous/next workspace.
If the user has no bindsyms for Button4/Button5, there is no change.
This is consistent with the idea that workspaces are hotspots, and
hotspot event handlers take priority over the user's bindsyms, see
|
||
|---|---|---|
| .. | ||
| tray | ||
| bar.c | ||
| config.c | ||
| i3bar.c | ||
| image.c | ||
| input.c | ||
| ipc.c | ||
| main.c | ||
| meson.build | ||
| render.c | ||
| status_line.c | ||
| swaybar-protocol.7.scd | ||