under wayland sometimes mouse clicks during launch of GtkPopover go behind parent and raise obscured unrelated window
I can reproduce with gnome-shell-40.0-3.fc34 + mutter-40.0-5.fc34 with the attached gtk3 program. Click rapidly on the popover launching button with another window, firefox in my case, behind the demo application and after a few iterations firefox is raised in front of the demo..
This can be also seen in LibreOffice Impress (https://bugzilla.redhat.com/show_bug.cgi?id=1953133) on clicking in the slide browser while a GtkPopover is launched to indicate the slide number.
reproducer demo gtk source (from https://gist.github.com/andreldm/83c9b99e7aa133c924fb4165acc8427a) popover_sample.c
WAYLAND_DEBUG=1 ./popover_sample |& tee debug.log
output of debug.log
A video demo: Demo
Following https://fedoraproject.org/wiki/How_to_debug_Wayland_problems#Testing_under_different_compositors I can't reproduce under weston