ayatana-commits team mailing list archive
-
ayatana-commits team
-
Mailing list archive
-
Message #02928
[Merge] lp:~mterry/indicator-appmenu/close-menu-when-switching into lp:indicator-appmenu
Michael Terry has proposed merging lp:~mterry/indicator-appmenu/close-menu-when-switching into lp:indicator-appmenu.
Requested reviews:
Indicator Applet Developers (indicator-applet-developers)
Related bugs:
#709305 When currently focused window changes, dismiss any open menus
https://bugs.launchpad.net/bugs/709305
For more details, see:
https://code.launchpad.net/~mterry/indicator-appmenu/close-menu-when-switching/+merge/48047
For bug 709305.
--
https://code.launchpad.net/~mterry/indicator-appmenu/close-menu-when-switching/+merge/48047
Your team ayatana-commits is subscribed to branch lp:indicator-appmenu.
=== modified file 'src/indicator-appmenu.c'
--- src/indicator-appmenu.c 2011-01-25 16:39:51 +0000
+++ src/indicator-appmenu.c 2011-01-31 20:27:28 +0000
@@ -979,6 +979,9 @@
iapp->active_window = active_window;
iapp->active_stubs = STUBS_UNKNOWN;
+ /* Close any existing open menu by showing a null entry */
+ window_show_menu(iapp->default_app, NULL, gtk_get_current_event_time(), iapp);
+
if (active_window != NULL) {
g_object_weak_ref(G_OBJECT(active_window), window_finalized_is_active, iapp);
}
Follow ups