GtkMenu: Use gdk_window_move_to_rect() even more often

Dima Ryazanov requested to merge dima/gtk:fix_menu_position into gtk-3-24

The fix in https://bugzilla.gnome.org/show_bug.cgi?id=772922 made the positioning code use gdk_window_move_to_rect() under certain conditions. This change removes one of the limitations: the new code will be used even if a custom positioning function is provided.

This fixes context menus on Wayland in Epiphany and LibreOffice.

Fixes #1154 (closed)

Edited by Dima Ryazanov

Merge request reports