Autohide grab lost with nested popovers
How to reproduce:
- Open
gtk4-widget-factory
- Navigate to page 3
- Click on the
Open
GtkMenuButton at the top of the page: a popup appears - Inside the popup, click on the GtkMenuButton with the
gear
icon: a nested popup appears - Now click on the first popup to close the second popup
What happens:
The first popup has no active grab anymore, so when clicking outside it doesn't automatically hide.
Note that on Wayland we can make it hide by clicking onto another application window; in that case the compositor sends xdg_popup::popup_done