-
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
Sway 1.6 cursor issue in-game: cursor is not updated #6195
Comments
Experiencing this as well
|
Your bug report is missing debug logs. Please add a link to the full debug log file. |
Sure, there you are: https://gist.github.com/MarcoCount/c632c144056dc1b749a41a28e904faed |
I just set these variables and now cursors are working again:
See: https://github.com/swaywm/wlroots/blob/master/docs/env_vars.md I'll try to isolate exactly which one is making the difference, but if I had to guess, it's probably disabling hardware cursors that's done the trick |
Yup, that's |
It looks like one of the recent wlroots commits fixed the issue for me. The game I used to test for this bug on my machine before (Factorio) seems to update the mouse cursor just fine now. I think it was swaywm/wlroots#3021 |
I can confirm that the issue seem to be solved for me. |
Sway Version:
Description:
Since sway 1.6, after changing focused window the cursor is sometimes not changed back to the game's cursor and the default cursor is used.
Age Of Empires II De changes the cursor during different stages of the game.
![normal_cursor](https://user-images.githubusercontent.com/8338615/115115620-bb860c80-9f95-11eb-952a-04543f87ad82.png)
![second_cursor](https://user-images.githubusercontent.com/8338615/115115714-246d8480-9f96-11eb-85c8-f2907dcaea63.png)
Since sway 1.6, even if I never switch focus, the cursor never changes, and instead the default game cursor is used.
This is particularly bad when the game presents the "flag cursor" which has its point of application at the bottom (and not on the top).
The "flag cursor" is not presented, but instead the normal cursor image is shifted up (because the flag image would have been shifted up, because it points to the bottom).
Game cursor:
Flag cursor before sway 1.6:
Note: I downgraded only wlroots to 0.12 and sway 1.15 and the issues was not there
Debug Log:
I tried to check in the debug log if anything was being written at all (sway -d -V).
I noticed that the log had some:
00:00:06.094 [sway/input/cursor.c:865] denying request to set cursor from unfocused client
but they were only happening when switching focus.Furthermore I went back to sway 1.5 and the same error was printed.
The only message that was printed while switching between the default cursor and the "flag cursor" mode was:
00:03:15.045 [DEBUG] [xwayland/xwm.c:771] unhandled X11 property 379 (_NET_WM_USER_TIME) for window xyz
but the same thing was happening on sway 1.5Configuration File:
I unfortunately performed the tests with a somewhat custom config.
I will try to retry with the default config, but the outcome is likely not going to change.
https://gist.github.com/MarcoCount/65a04c2ec21846474bdc041e4513000f
Conclusion:
Let me know if you would need any other information.
Thanks a lot in advance.
The text was updated successfully, but these errors were encountered: