pop-os / cosmic-comp

Compositor for the COSMIC desktop environment
GNU General Public License v3.0
465 stars 82 forks source link

(Bug) The window keyboard capture is not reliable on GTK programs #621

Open hardBSDk opened 1 month ago

hardBSDk commented 1 month ago

Sometimes the focused window don't receive the keyboard input, to workaround this you need to change the focused window and return.

How To Reproduce

Drakulix commented 1 month ago

Which apps are you using to reliably reproduce this? Cosmic-Terminal has a know bug, where the text area can loose focus: https://github.com/pop-os/cosmic-term/issues/229

git-f0x commented 1 month ago

It's also present in cosmic-edit, and is tracked here. https://github.com/pop-os/libcosmic/issues/431

hardBSDk commented 1 month ago

@Drakulix GTK3 and GTK4 programs, maybe Qt programs.

I have this bug with Firefox, maybe it's the more easy to reproduce.

hardBSDk commented 1 month ago

I had this bug on the build from 4 days ago:

https://copr.fedorainfracloud.org/coprs/ryanabx/cosmic-epoch/build/7730157/

Now I updated to this build:

https://copr.fedorainfracloud.org/coprs/ryanabx/cosmic-epoch/build/7740371/

ids1024 commented 1 month ago

I've sometimes noticed Firefox not getting keyboard input, until I switch to another application and back. Not sure if it's related to having Firefox in a stack. I've not been able to reproduce it consistently.