Bug 5698 - Mac main menu should be disabled when a modal dialog is opened
Summary: Mac main menu should be disabled when a modal dialog is opened
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Shell ()
Version: Trunk
Hardware: PC Mac OS
: Normal major
Target Milestone: ---
Assignee: Bugzilla
: 7994 ()
Depends on:
Reported: 2012-06-18 03:06 UTC by Lluis Sanchez
Modified: 2015-08-24 12:52 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Lluis Sanchez 2012-06-18 03:06:25 UTC
Mac main menu should be disabled when a modal dialog is opened
Comment 1 Alan McGovern 2012-11-01 17:18:53 UTC
*** Bug 7994 has been marked as a duplicate of this bug. ***
Comment 2 Mikayla Hutchinson [MSFT] 2012-11-01 18:34:13 UTC
This allows messing things up pretty badly - modal dialogs assume other things won't be changing while they're open - and uses can open multiple modal dialogs which gets very confusing.
Comment 3 Mikayla Hutchinson [MSFT] 2012-11-01 18:36:07 UTC
Here is the relevant code:

It appears GTK allows the main window to gain focus even when a modal window is open. Maybe we can work around this by detecting whether we're in a modal subloop, or iterating all windows and checking for modal ones.
Comment 4 Mikayla Hutchinson [MSFT] 2012-11-02 14:21:47 UTC
Probably related to bug 8165.
Comment 5 Lluis Sanchez 2015-08-24 12:52:17 UTC
Main mac menu is currently disabled when a modal dialog is running.