Popover cannot be closed after opening a child popover
Steps to reproduce
- Run reproducer.ui with
gtk4-builder-tool preview reproducer.ui
- Open the popover by clicking the button
- Right-click the text entry to open the context menu and click somewhere inside the popover to close the menu. Alternatively, select an emoji from the emoji picker.
- Attempt to close the popover by clicking somewhere inside the window
Current behavior
The popover will stay open until clicking outside the main window, or pressing Esc (only works if the caret is visible in the text entry).
Expected outcome
The popover can be closed as usual by clicking anywhere inside the window.
Version information
GTK 4.5.0
Fedora 35 Silverblue
Additional information
This issue seems to occur on both Wayland and X11.
The UI file is attached below. It can also be used in GTK 3's gtk-builder-tool preview
.
reproducer.ui