From ae740f3ffe10aff6505921f8b78a5ff90a94ab33 Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Thu, 12 Oct 2017 21:39:04 -0400 Subject: GTK 3.22/status-notifer Fix menu position if size changed since last shown Mostly fixes serious mispositioning of network-manager applet (indicator mode) menus when connections were changed on last showing of menu and applet is on bottom panel and especially bottom right --- applets/notification_area/status-notifier/sn-item.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/applets/notification_area/status-notifier/sn-item.c b/applets/notification_area/status-notifier/sn-item.c index 87aeedf2..d62c7a30 100644 --- a/applets/notification_area/status-notifier/sn-item.c +++ b/applets/notification_area/status-notifier/sn-item.c @@ -271,6 +271,8 @@ sn_item_button_press_event (GtkWidget *widget, GDK_GRAVITY_SOUTH_WEST, GDK_GRAVITY_NORTH_WEST, (GdkEvent *) event); + /*Fix positioning if size changed since last shown*/ + gtk_menu_reposition(priv->menu); #else gtk_menu_popup (priv->menu, NULL, NULL, sn_item_popup_menu_position_func, widget, -- cgit v1.2.1