Regression: focus is lost after showing popover
Commit 3dbf5038 introduces a regressions that happens on circumstances that I am not able to nail down nor reproduce outside of Password Safe.
After clicking on a MenuButton and pressing elswhere to popdown the menu, focus is lost, the button stays as pressed, and I cannot click anything & the app becomes unresponsive, as if the focus was still on that menu which is not visible anymore. Clicking on the menubutton sometimes fixes this issue.
In the following screencast, after clicking the menu in the headerbar the button stays as if pressed, then clicking on the rows of the listbox does not do anything. Clicking on the menu button again will 'unstuck' the view showing the page that would have been shown if not for the bug.
Screencast_from_19-02-21_22_12_30
This issue happens in wayland, I have not tested it in x11.