GTK4: Mouse loses focus of window forever if clicking at the same time a popover is opening
GTK4: Mouse loses focus of window forever if clicking at the same time a popover is opening
This bug can be triggered on many GTK4 apps by quickly clicking the mouse while opening a popover. The popover is dismissed too quickly, and the mouse focus is never restored to the window. Seems like a race condition.
Steps to reproduce
- On Nautilus, click with both mouse buttons at the same time on the window, or quickly click left-right mouse buttons alternately. Eventually, the window becomes un-interactable.
- On the Bottles app, I could also cause the bug by clicking with both mouse buttons on a control that opens a popover.
Current behavior
It becomes impossible to interact with the window with the mouse until the app is completely closed and reopened. For Nautilus, that might require a logout/login.
Expected outcome
The mouse should be able to interact with the window after the popover is dismissed, no matter how fast that was.
Version information
Fedora Silverblue 38. Gnome 44. Nautilus native, Bottles and other apps using Gnome 44 runtime from Flathub.
I'm pretty sure the issue already existed in Gnome 43.
Additional information
Edited by Jonatas Esteves