summaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2017-10-12 21:39:04 -0400
committerlukefromdc <[email protected]>2017-10-12 21:39:50 -0400
commitae740f3ffe10aff6505921f8b78a5ff90a94ab33 (patch)
tree1e83b490c182151b5b669b986ceecc6233709895 /applets
parentf4e875fe0ee9ae52b78e3c62e1b375615284c0d9 (diff)
downloadmate-panel-ae740f3ffe10aff6505921f8b78a5ff90a94ab33.tar.bz2
mate-panel-ae740f3ffe10aff6505921f8b78a5ff90a94ab33.tar.xz
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
Diffstat (limited to 'applets')
-rw-r--r--applets/notification_area/status-notifier/sn-item.c2
1 files changed, 2 insertions, 0 deletions
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,