Skip to content

fix(hyprland/workspaces): respect enable-bar-scroll config option - #5232

Open
brian-brow wants to merge 1 commit into
Alexays:masterfrom
brian-brow:fix/hyprland-enable-bar-scroll-5229
Open

fix(hyprland/workspaces): respect enable-bar-scroll config option#5232
brian-brow wants to merge 1 commit into
Alexays:masterfrom
brian-brow:fix/hyprland-enable-bar-scroll-5229

Conversation

@brian-brow

Copy link
Copy Markdown

What does this PR do?
Removed hasScrollConfig boolean variable in Workspaces init function. It was OR'd with barScroll() and overriding when enable-bar-scroll is declared false in waybar config. Setting any scroll up or down events caused enable-bar-scroll to be ignored.

Tested on Arch/Hyprland, removing hasScrollConfig and the or condition restored expected behavior.

Related issues
Closes #5229

Checklist

  • Code is formatted with clang-format
  • Builds locally (ninja -C build)
  • Man page updated for any new/changed user-facing option (man/)
  • Tested against the affected module(s)

Removed hasScrollConfig boolean variable in Workspaces init function. It
was Or'd with barScroll boolean variable and overriding it when
enable-bar-scroll is declared false in waybar config. Setting any scroll
up or down events caused enable-bar-scroll to be overwritten.

Tested on Arch/Hyprland, removing hasScrollConfig and the or condition
restored expected behavior.

Fixes Alexays#5229
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hyprland/workspaces: disabling enable-bar-scroll has no effect with custom on-scroll-down and on-scroll-up commands

1 participant