-
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 stops countdown after left clicking once (but not moving the cursor) #5679
Comments
Clicking is mouse activity. I would expect the countdown to reset after any mouse activity, not just movement. |
Reset the event source after unhiding the cursor, to ensure that the timeout starts after showing the cursor. Also remove the open coded variant in seat_consider_warp_to_focus(). Fixes swaywm#5679
Please test #5681. |
To clarify, because I got confused as well, the issue seems to be that clicking will stop the countdown, showing the cursor, but won't restart it so the cursor will remain visible indefinitely until moved. |
Reset the event source after unhiding the cursor, to ensure that the timeout starts after showing the cursor. Also remove the open coded variant in seat_consider_warp_to_focus(). Fixes swaywm#5679
Yes thats exactly what happens. I added this clarification to the bug report. |
@antisocrates update wlroots. |
Reset the event source after unhiding the cursor, to ensure that the timeout starts after showing the cursor. Also remove the open coded variant in seat_consider_warp_to_focus(). Fixes #5679
Otherwise, Sway will not re-hide a cursor after the last button has been released. Needed alongside afa890e to fix swaywm#5679.
Not quite resolved yet. |
The original issue is fixed. One minor observation, comparing the hide_cursor behavior, with the behavior of unclutter on i3/xorg: When you first login on i3/xorg, unclutter starts the countdown immediately and hides the cursor after 3 seconds for example. In contrast, when you first login on sway, hide_cursor does not start the countdown and the cursor remains visible indefinetely until the first activity. (until you click or move the cursor for the first time) I am not sure if this is intended behavior or a bug, so i also report this: #5684 |
Sway Version:
sway version v1.5
Debug Log:
sway.log
Configuration File:
config
Description:
Using
seat * hide_cursor 3000
in sway config to hide the mouse cursor after 3 seconds of inactivity.The countdown (towards timeout to hide the cursor) stops after clicking anywhere indefinately (until the cursor moves again)
Steps to reproduce:
Left click anywhere
Dont move the cursor (stay on the same spot you clicked, otherwise countdown resets and hides as normal)
Here is a 60second demonstration of the issue i have uploaded:
Video Demonstration
Clarification:
Clicking will stop the countdown, showing the cursor, but won't restart it so the cursor will remain visible indefinitely until moved.
The text was updated successfully, but these errors were encountered: