-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
hide_cursor when-typing disables mouse on keyboard input while gaming #6297
Comments
This is not exclusive to XWaylnd, a much simpler way to test is with
|
This makes it so that `seat hide_cursor` no longer clears cursor focus when hidding. Clearing focus casuses problems whenever keyboard and mouse are to be used in conjunction.
This makes it so that `seat hide_cursor` no longer clears cursor focus when hidding. Clearing focus casuses problems whenever keyboard and mouse are to be used in conjunction.
This doesn't affect only gaming, but also gimp, blender, and presumably other image editors, 3d modelling programs etc. For example in gimp when selecting an area and trying to zoom in/out using ctrl + mouse wheel at the same time. |
Could you run |
|
I just tested it with a mouse that only registers as a mouse device and it also happens. |
Oh, I understand now, but I'm not sure what we can do about this? Deferring disabling the mouse to when all mouse keys are released seems reasonable, to avoid the OP's issue, but won't help if you're pressing Ctrl before scrolling. We could special-case modifiers from not triggering dwt, but at that point the casing seems arbitrary... What do other compositors/OSes do here? |
I think it would; to clarify the problem: when selecting an area (mouse button being pressed down), then pressing ctrl (or any other key) makes the selection stop responding. So I believe not disabling the cursor while a mouse button is pressed would solve the issue.
I only tried Xorg window managers with |
As i understand it, xbanish simply hides the cursor image, but the cursor itself is still functional. Any mouse event will restore the image. Maybe that could be improved to prevent hiding while a mouse button is pressed as well. |
I noticed a similar bug when hovering with hide_cursor enabled: if something is being previewed, it'll disappear with the cursor. I also think |
FWIW, MacOS, which has this feature built-in (and not able to be disabled that I know of), the mouse also stays active when the cursor hides. |
Someone just reported on reddit that removing the line
Fron the method cursor_hide() seems to fix it. Patch: lelgenio@b21dc48 |
Could you open a pull request with the patch? |
We've discussed this before and decided against it. |
Why, could you link the discussion pls? |
I was hitting this and it took me a while to realize what was going on and find this issue. Perhaps we could put a warning into the manpage at least? Basically just mention that there can be side-effects with some software (games, inkscape etc). I can try and prep some MR |
I have a slightly different problem With This happens on any window I've tried, from terminals, browsers, looking-glass, etc... A quick way to reproduce is to hold left mouse click to select some text, tap I have not tested #7574 yet, has anyone seen this specific behavior? |
Sway Version: 1.6
Debug Log: gist of sway.log
Description:
hide_cursor
set towhen-typing
I suspect this has to do with XWayland, since I can't reproduce the bug in sway itself.
I am not alone with this issue: reddit post
The text was updated successfully, but these errors were encountered: