Apps have input sleep after 10 seconds
Version information
- Arch Linux
6.12.3-arch1-1
wayland 1.23-1-1
gtk3 1:3.24.43-4
sway 1:1.10-1
Steps to reproduce
- Open an app that uses GTK3 (such as google-chrome or kicad).
- Open an app that doesn't use GTK3 (like alacritty or GNU Emacs) side-by-side.
- Give the non-GTK3 app focus and wait for 10 seconds. This can be by using sway keystrokes (mod+{j,k,l,m}) or mouse cursor click.
- Give the GTK3 app its focus again and scroll/type something
Current behavior
A couple of seconds will pass with no indication that the app recognizes it has focus (highlight / window focus decorations). During this two seconds, all the mouse movements and keyboard inputs are queuing up. Then they will all happen at once, after the delay finishes.
Note: Losing focus is not the only condition that will cause this "input sleep" situation! That's just the only method I can use to reproduce this consistently.
This has got to be unrelated to USB udev autosuspend configuration; that seems kernel-level and would universally affect input sleep for everything. What I'm talking about here is something that only applies to some apps that have lost focus, which seem to always be GTK3. Anyway, I don't see any autosuspend settings configured in any udev files.
Expected outcome
There is no delay and the app regains focus and accepts inputs immediately.