Fixed showing popup menu on RMB at tray icon (#1210)
This commit is contained in:
parent
01368932b0
commit
79d3133ebc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue