-
-
Notifications
You must be signed in to change notification settings - Fork 21k
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
Tripled key inputs after wake from sleep using "prefer Wayland" #95144
Comments
Sorry, I'm currently on vacation, so I have limited testing capabilities. I can't reproduce this on sway, with commit e343dbb (not the latest but that's what I had on hand). Perhaps the keyboard objects aren't being cleaned up or something, not sure. Could you attach a debug Wayland log? The incantation is the usual: |
Here is the log. During the session, I typed "test" into the scene search then cleared it. Closed the lid on the laptop for a while. Opened it and again typed "test" into the search (and saw "ttteeesssttt", cleared it and closed Godot. |
Thank you! It indeed looks like three keyboard objects are coexisting:
Curiously, none of those IDs match the keyboard used before suspending ( The issue seems to stem from GNOME reporting the available input devices ("capabilities") multiple times, perhaps from a sequential power up:
(the above is shortened for convenience) The compositor is doing a perfectly normal thing, but we just keep recreating keyboards every time we get a capabilities event with a keyboard in it. I'm actually quite surprised this didn't pop up sooner. I'll soon add some checks to avoid duplicate objects. Note that I'm still on vacation, so I might be a tad slower at sending a patch. I'll see what I can do. |
Vacation is more important than fixing bugs! 🤍 |
Tested versions
4.3 rc2
System information
Godot v4.3.rc2 - Nobara Linux 40 (GNOME Edition) - Wayland - Vulkan (Mobile) - dedicated NVIDIA GeForce RTX 3050 Ti Laptop GPU - 11th Gen Intel(R) Core(TM) i7-11370H @ 3.30GHz (8 Threads)
Issue description
This is me typing "test" after opening the lid on my laptop with "prefer wayland" toggled on:
This does not always happen, but has never happened with "prefer wayland" toggled off.
No other application is affected by this (as evident from me typing this).
Typing functionality in Godot can be returned to normal by restarting the editor.
Steps to reproduce
Minimal reproduction project (MRP)
N/A
The text was updated successfully, but these errors were encountered: