Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling mouse scroll workspace switching on bar using bindsym doesn't work #3984

Closed
jfrob opened this issue Apr 2, 2020 · 4 comments
Closed

Comments

@jfrob
Copy link

jfrob commented Apr 2, 2020

I'm submitting a…

[x] Bug
[ ] Feature Request
[ ] Documentation Request
[ ] Other (Please describe in detail)

Current Behavior

Mouse scrolling on workspace bar is still switching workspaces even after bindsym button4(/5) nop is added to bar block.

Expected Behavior

No workspace switch when scrolling over workspace bar.

Reproduction Instructions

Following the i3 user guide chapter 5.4, add the bindsyms to i3 config inside bar block:

bar {
  bindsym button4 nop
  bindsym button5 nop
  ...
}

(Re)start i3.
Create few workspaces.
Move mouse over the workspace bar.
Scroll mouse up/down.

Environment

Output of i3 --moreversion 2>&-:

$ i3 --moreversion 2>&- || i3 --version
Binary i3 version:  4.18 (2020-02-18) © 2009 Michael Stapelberg and contributors
Running i3 version: 4.18 (2020-02-18) (pid 2884932)bort…)
Loaded i3 config: /home/user/.config/i3/config (Last modified: Thu  2 April 2020 20.11.21, 1650 seconds ago)

The i3 binary you just called: /usr/bin/i3
The i3 binary you are running: i3
i3 config: https://pastebin.com/H12ZRXKs
Logfile URL: https://logs.i3wm.org/logs/5659835886469120.bz2
- Linux Distribution & Version: Gentoo
- Are you using a compositor (e.g., xcompmgr or compton): Yes, picom. But also tested without it, no change
@Airblader
Copy link
Member

Thanks for opening this issue and providing all the information! I personally also use this and it works fine for me. In this case the i3bar log is a bit more relevant, could you please also attach the log file for that? You can find here (Section 7, at the bottom) how to do it: https://i3wm.org/docs/debugging.html

@jfrob
Copy link
Author

jfrob commented Apr 3, 2020

Grabbed a quick log:

  1. Enabled logging as instructed
  2. Scrolled the mouse up and down on the bar
  3. Killed i3bar to stop the log.

Log attached.
i3bar.bar-0.log

@orestisfl
Copy link
Member

I think you need to block scroll left/right as well. These are 6 and 7 so add:
bindsym button6 nop and bindsym button7 nop

orestisfl added a commit to orestisfl/i3 that referenced this issue Apr 3, 2020
@jfrob
Copy link
Author

jfrob commented Apr 3, 2020

D'oh.
@orestisfl is right on the money. I should've thought about the side scroll events but it never even crossed my mind.

Thanks!

@jfrob jfrob closed this as completed Apr 3, 2020
orestisfl added a commit to orestisfl/i3 that referenced this issue Apr 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants