Free old window menu if it already exists so we don't end up with more
2003-03-16 Rob Adams <robadams@ucla.edu> * window.c (meta_window_show_menu): Free old window menu if it already exists so we don't end up with more than one. Fix for #108392.
This commit is contained in:
@ -5490,6 +5490,13 @@ meta_window_show_menu (MetaWindow *window,
|
||||
MetaMenuOp insensitive;
|
||||
MetaWindowMenu *menu;
|
||||
|
||||
if (window->display->window_menu)
|
||||
{
|
||||
meta_ui_window_menu_free (window->display->window_menu);
|
||||
window->display->window_menu = NULL;
|
||||
window->display->window_with_menu = NULL;
|
||||
}
|
||||
|
||||
ops = 0;
|
||||
insensitive = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user