Gtk3: Mouse pointer sporadically lost in ScrolledWindow
I noticed some weird behavior when packing some Buttons in a ScrolledWindow: Sporadically, the mouse pointer seems unseen by the widgets, mouse click doesn't work any more, hover is also not detected (corresponding style not applied). Normal behavior comes back after a few seconds when moving again the mouse.
See attached example in Python: scrolledwindow-pointer-lost.py
Steps to reproduce
- Run the above script (it implements some kind of scrollable notebook header with buttons as tabs).
- Create a dozen of tabs with the "+" button at the top right, so the header bar gets scrollable.
- Move the mouse pointer over the tabs and observe the "hover" style change (button border visible + red text).
Current behavior
When moving the mouse over the tabs, sometimes the "hover" is detected (style change), sometimes nothing happens and the buttons are not clickable, as if the mouse pointer was lost.
Expected outcome
Hover style always applied, clicks always work.
Version information
gtk-3.24
Issue observed on:
- Ubuntu LTS 20.04 + Wayland (libgtk-3-0 3.24.20-0ubuntu1)
- OpenSuse Tumbleweed + X11 (libgtk-3-0 3.24.30)
- Windows 10 + Msys2 mingw64 (3.24.30-5)
All distros with latest updates.
Additional information
Edited by Ghost User