Fixed showing popup menu on RMB at tray icon (#1210)

This commit is contained in:
Noobsai 2020-05-12 02:19:33 +05:00 committed by GitHub
parent 01368932b0
commit 79d3133ebc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ static void popup(GtkStatusIcon* self, guint button, guint when, gpointer data U
GtkWidget* w = gtr_action_get_widget("/icon-popup");
#if GTK_CHECK_VERSION(3, 22, 0)
gtk_menu_popup_at_widget(GTK_MENU(w), GTK_WIDGET(self), GDK_GRAVITY_SOUTH, GDK_GRAVITY_NORTH, NULL);
gtk_menu_popup_at_pointer(GTK_MENU(w), NULL);
#else
gtk_menu_popup(GTK_MENU(w), NULL, NULL, gtk_status_icon_position_menu, self, button, when);
#endif