From 06de51cff3ff4c98039161745f20c2c16a516cb3 Mon Sep 17 00:00:00 2001 From: Victor Ananjevsky Date: Sun, 11 Aug 2019 22:07:56 +0300 Subject: [PATCH] fix popup menu in tray icon --- src/notification.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/notification.c b/src/notification.c index 5c3ca9f..6c945c4 100644 --- a/src/notification.c +++ b/src/notification.c @@ -204,7 +204,7 @@ popup_menu_item_activate_cb (GtkWidget * w, gpointer data) } static void -popup_menu_cb (GtkStatusIcon * icon, guint button, guint activate_time, gpointer data) +popup_menu_cb (GtkStatusIcon *icon, guint button, guint activate_time, gpointer data) { GtkWidget *menu; GtkWidget *item; @@ -254,7 +254,7 @@ popup_menu_cb (GtkStatusIcon * icon, guint button, guint activate_time, gpointer gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); } - gtk_menu_popup_at_widget (GTK_MENU (menu), GTK_WIDGET (icon), GDK_GRAVITY_SOUTH_WEST, GDK_GRAVITY_NORTH_WEST, NULL); + gtk_menu_popup_at_pointer (GTK_MENU (menu), NULL); } static gboolean