GNOME Shell swipe gestures break input in GTK4 applications
Affected version
- OS: Fedora 35; GNOME OS 42.beta/main
- GTK from flatpak nightly repo or flathub
- Xorg or Wayland: Wayland (Xorg untested)
Bug summary
Using touchpad swipe gestures causes GTK4 widgets below the cursor to stop working when you return to the window. This does not happen for touchscreen gestures, and it does not happen for the Super key.
Steps to reproduce
- Open a GTK4 app from gnome-nightly
- Hover over a UI element, such as a button
- Use a touchpad to open the GNOME Shell overview via the 3 finger swipe gesture
- Click the UI element
What happened
The UI element under the cursor does not properly reacts to clicks. The CSS styling shows that a click is received on some level, but the application does not actually respond to the click.
What did you expect to happen
The UI element under the cursor should properly react to clicks.
Relevant logs, screenshots, screencasts etc.
The behavior seems to vary between versions of GTK4. First, we have the behavior described above. This is what happens for all GNOME nightly apps:
Screencast_from_02-21-2022_06_27_59_PM__trimmed_
Secondly, we have this behavior from GTK 4.4.2 (what the 41 SDK uses). This only eats one click:
Screencast_from_02-21-2022_06_23_38_PM__trimmed_
Finally, there's this behavior from GTK 4.6.0, which is what I bundle with Solanum on Flathub. There is no issue with input here.