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:
Rob Adams 2003-03-17 01:19:07 +00:00 committed by Rob Adams
parent 2d662f67a5
commit 51e74d4027
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,9 @@
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.
2003-03-14 Rob Adams <robadams@ucla.edu>
* contraints.c (get_outermost_screen_positions): Don't try to

View File

@ -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;