From 79d3133ebc46cc64e1eab0c14f962d771a73c3f5 Mon Sep 17 00:00:00 2001 From: Noobsai Date: Tue, 12 May 2020 02:19:33 +0500 Subject: [PATCH] Fixed showing popup menu on RMB at tray icon (#1210) --- gtk/tr-icon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/tr-icon.c b/gtk/tr-icon.c index 663cc94d2..15d4e22eb 100644 --- a/gtk/tr-icon.c +++ b/gtk/tr-icon.c @@ -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