GNOME Bugzilla – Bug 749529
Crash when selecting any action from the window menu after the window has gone away
Last modified: 2015-05-21 16:21:15 UTC
If a window disappears while its menu is open, the menu stays visible - however, selecting any action ("Maximize", "Move", etc.) causes gnome-shell to crash. Repro steps: - Open gnome-terminal - Run "sleep 3; exit" - Right-click the title-bar before the window disappears - Click any menu item
Created attachment 303769 [details] [review] windowMenu: Close when corresponding window goes away The menu is clearly associated with a particular window, so keeping it around when the window is gone doesn't make sense - in case of the window menu, it is actually harmful as every action will act on the invalidated window and result in a crash. So just dismiss the menu when the menu is unmanaged.
Review of attachment 303769 [details] [review]: obvious yes
Attachment 303769 [details] pushed as 60d1f77 - windowMenu: Close when corresponding window goes away