When the app tries to show overlay it crashes.
If run the app through a console it works fine, though there are critical errors in the console:
Gtk-CRITICAL **: 13:40:50.791: gtk_overlay_remove_overlay: assertion 'gtk_widget_get_parent (widget) == GTK_WIDGET (overlay)' failed
Steps to reproduce:
- Open a book.
- Highlight a word
- Click Dictionary, Wikipedia or Translate in menu.
- App crashes
Here a screenshot with errors.

- Foliate version: 3.3.0
- OS/Distribution and version: Fedora 42
- Desktop environment: GNOME 48.1 (Wayland)
- Installation method: Flatpak
When the app tries to show overlay it crashes.
If run the app through a console it works fine, though there are critical errors in the console:
Gtk-CRITICAL **: 13:40:50.791: gtk_overlay_remove_overlay: assertion 'gtk_widget_get_parent (widget) == GTK_WIDGET (overlay)' failedSteps to reproduce:
Here a screenshot with errors.
