gtk_menu_popup_at_pointer is introduced in gtk 3.22, and gtk_menu_popup
is marked as deprecated (and removed in gtk4 branch).
gtk_menu_popup_at_pointer also contains extra logic that fix popup
positioning in wayland so the menu won't be out of display.
gtk_menu_popup_at_pointer is introduced in gtk 3.22, and gtk_menu_popup is marked as deprecated (and removed in gtk4 branch). gtk_menu_popup_at_pointer also contains extra logic that fix popup positioning in wayland so the menu won't be out of display.