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

Disable mouse scroll of virtual desktops #366

Closed
david2012brooke opened this Issue Mar 23, 2017 · 8 comments

Comments

Projects
None yet
4 participants
@david2012brooke

david2012brooke commented Mar 23, 2017

I would like to disable the virtual desktop selection via the mouse scroll wheel on the root window but I can't find any documentation or other user info.

Per the JWM site "Scrolling up on the root window switches to the left desktop and scrolling down switches to the right desktop".
https://joewing.net/projects/jwm/config.shtml#mouse

@joewing joewing added the enhancement label Mar 24, 2017

@J-Reis

This comment has been minimized.

Show comment
Hide comment
@J-Reis

J-Reis Jun 23, 2017

This would be a useful enhancement. Though not essential, I do occasionally confuse myself when the screen suddenly goes crazy … and it takes a moment or (embarrassingly) two to realize that my cursor has wandered over root while I read, etc.

J-Reis commented Jun 23, 2017

This would be a useful enhancement. Though not essential, I do occasionally confuse myself when the screen suddenly goes crazy … and it takes a moment or (embarrassingly) two to realize that my cursor has wandered over root while I read, etc.

@romeojulietthotel

This comment has been minimized.

Show comment
Hide comment
@romeojulietthotel

romeojulietthotel Jul 10, 2017

I think it's an essential feature, ability to remap or disable, that's needed. It has become annoying to the point that I may look at another wm. But I like jwm for it's simplicity and that it works just fine.

I don't mind the feature of scrolling the desktop but my problem is that it always happens by accident. I'm not sure but sometimes it seems as if the pointer jumps to the edge when I want to scroll in the browser.

romeojulietthotel commented Jul 10, 2017

I think it's an essential feature, ability to remap or disable, that's needed. It has become annoying to the point that I may look at another wm. But I like jwm for it's simplicity and that it works just fine.

I don't mind the feature of scrolling the desktop but my problem is that it always happens by accident. I'm not sure but sometimes it seems as if the pointer jumps to the edge when I want to scroll in the browser.

@joewing

This comment has been minimized.

Show comment
Hide comment
@joewing

joewing Jul 14, 2017

Owner

Snapshot 1599 allows you to define an empty root menu as a means to disable desktop switching by scrolling on the desktop:

<RootMenu onroot="45"/>
Owner

joewing commented Jul 14, 2017

Snapshot 1599 allows you to define an empty root menu as a means to disable desktop switching by scrolling on the desktop:

<RootMenu onroot="45"/>

@joewing joewing added this to the Version 2.3.7 milestone Jul 14, 2017

@romeojulietthotel

This comment has been minimized.

Show comment
Hide comment
@romeojulietthotel

romeojulietthotel Jul 16, 2017

@joewing thanks for snapshot 1599, it does work as you documented. One problem for me is if I access my jwm desktop via vnc then I really need that root menu. I have to guess that just disabling the mousewheel on the desktop is harder to accomplish. i.e.
<RootMenu onroot="13"/>

But mouse bindings look like the long term solution or do I misunderstand that feature?

romeojulietthotel commented Jul 16, 2017

@joewing thanks for snapshot 1599, it does work as you documented. One problem for me is if I access my jwm desktop via vnc then I really need that root menu. I have to guess that just disabling the mousewheel on the desktop is harder to accomplish. i.e.
<RootMenu onroot="13"/>

But mouse bindings look like the long term solution or do I misunderstand that feature?

@joewing

This comment has been minimized.

Show comment
Hide comment
@joewing

joewing Jul 16, 2017

Owner

Disabling the scroll wheel should be:

<RootMenu onroot="45"/>

and you should be able to keep menus for the other buttons. Is there some reason that doesn't work within VNC?

Obviously, mouse bindings will be a cleaner solution, but this should work just as well for this particular purpose.

Owner

joewing commented Jul 16, 2017

Disabling the scroll wheel should be:

<RootMenu onroot="45"/>

and you should be able to keep menus for the other buttons. Is there some reason that doesn't work within VNC?

Obviously, mouse bindings will be a cleaner solution, but this should work just as well for this particular purpose.

@romeojulietthotel

This comment has been minimized.

Show comment
Hide comment
@romeojulietthotel

romeojulietthotel Jul 16, 2017

If I set onroot="45" I can press the middle-mouse-button and then scroll to see a menu. Left mouse button click shows no menu nor does the right button.

In my previous comment I didn't then realize that the middle-mouse would raise a menu but only when the wheel is scrolled. That's not a feature I would use since I don't like it.

Maybe I just have bad expectations or I am misunderstanding something here. All I want is to never scroll between desktops by scrolling the mousewheel. But I want left or right button to pop up the menu.

romeojulietthotel commented Jul 16, 2017

If I set onroot="45" I can press the middle-mouse-button and then scroll to see a menu. Left mouse button click shows no menu nor does the right button.

In my previous comment I didn't then realize that the middle-mouse would raise a menu but only when the wheel is scrolled. That's not a feature I would use since I don't like it.

Maybe I just have bad expectations or I am misunderstanding something here. All I want is to never scroll between desktops by scrolling the mousewheel. But I want left or right button to pop up the menu.

@joewing

This comment has been minimized.

Show comment
Hide comment
@joewing

joewing Jul 16, 2017

Owner

Set onroot="45" in a new, empty, root menu (you can have multiple). You can disable the scroll wheel affecting anything completely and have a root menu show up with buttons 1, 2, and 3.

Owner

joewing commented Jul 16, 2017

Set onroot="45" in a new, empty, root menu (you can have multiple). You can disable the scroll wheel affecting anything completely and have a root menu show up with buttons 1, 2, and 3.

@romeojulietthotel

This comment has been minimized.

Show comment
Hide comment
@romeojulietthotel

romeojulietthotel Jul 17, 2017

LGTM! Thank you for your time and efforts. Jwm is nice and simple and lightweight!

romeojulietthotel commented Jul 17, 2017

LGTM! Thank you for your time and efforts. Jwm is nice and simple and lightweight!

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