store the window menu on the display and blow it away when a window

2002-10-28  Havoc Pennington  <hp@pobox.com>

	* src/window.c, src/display.c: store the window menu on the
	display and blow it away when a window closes, so we don't
	get funny stuck menus. Patch from Martin Garton #87514
This commit is contained in:
Havoc Pennington
2002-10-28 05:35:30 +00:00
committed by Havoc Pennington
parent c9c67387ce
commit effec94613
4 changed files with 30 additions and 1 deletions

View File

@@ -394,8 +394,11 @@ meta_display_open (const char *name)
display->groups_by_leader = NULL;
display->window_with_menu = NULL;
display->window_menu = NULL;
display->screens = NULL;
#ifdef HAVE_STARTUP_NOTIFICATION
display->sn_display = sn_display_new (display->xdisplay,
sn_error_trap_push,