mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
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:
parent
2d662f67a5
commit
51e74d4027
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user