Skip to content

Commit

Permalink
GTK 3.22/status-notifer Fix menu position if size changed since last …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
lukefromdc committed Oct 13, 2017
1 parent f4e875f commit ae740f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions applets/notification_area/status-notifier/sn-item.c
Expand Up @@ -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,
Expand Down

0 comments on commit ae740f3

Please sign in to comment.