Bug 14469 - All menu items are disabled when Xamarin Studio is in fullscreen mode
Summary: All menu items are disabled when Xamarin Studio is in fullscreen mode
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Shell ()
Version: 4.1.10
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: master
Assignee: Cody Russell
: 15498 16212 16853 16956 ()
Depends on:
Reported: 2013-09-05 23:46 UTC by Clay Miller
Modified: 2016-04-19 14:19 UTC (History)
12 users (show)

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

Screenshot of issue ongoing in 5.6.2 (391.51 KB, image/png)
2014-10-21 23:42 UTC, Philippe Durand

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 Clay Miller 2013-09-05 23:46:09 UTC
I open Xamarin Studio. I click "Xamarin Studio" (or "File", "Edit", etc.) in the menu bar. I see various menu options (eg. "About Xamarin Studio", "Check for Updates...", etc.). All of these options are enabled, meaning they display with black text and are clickable. Good.

I click the fullscreen button in the top right corner of the Xamarin Studio title bar. Xamarin Studio fills my screen. Good.

Once again, I click "Xamarin Studio" (or "File", "Edit", etc.) in the menu bar. I see the same menu options as before, but now every option is disabled, meaning each option displays with gray text and is not clickable. Submenus display black, but all submenu options are disabled too. Bad.

The issue persists if I take Xamarin Studio back out of fullscreen mode. The only workaround I have found is to quit and reopen Xamarin Studio. Once reopened, all Xamarin Studio menu items are enabled.

My setup:
OS X 10.9 (preview 7)
Xamarin Studio 4.1.10 (build 14)
Mono 3.2.2 ((no/a0fc6ba)
Xamarin.iOS (Starter Edition)
Xamarin.Android 4.8.2 (Starter Edition)
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)

Possible duplicate:
Comment 1 Cody Russell 2013-09-16 17:40:10 UTC
This seems to be Mavericks specific.  I'm unable to reproduce this on Mountain Lion, but corrado reproduced it on Mavericks beta.
Comment 2 Cody Russell 2013-10-23 16:05:10 UTC
It seems that after being fullscreened GtkQuartz.GetToplevels() is returning an NSWindow that doesn't correspond to a GtkWindow.  This causes MacPlatform.IsModalDialogRunning() to return true, and that disables menuitems.

If we change that method to this:
    return toplevels.Any (t => t.Key.IsVisible && t.Value != null && t.Value.Modal);

then it is fixed.  However, I don't know if that will cause some other undesirable effect.  Do we have places where we're throwing up non-gtk Mac dialogs, and this IsModalDialogRunning() is assuming if an NSWindow is not associated with a GtkWindow then it's a dialog?
Comment 3 Cody Russell 2013-10-23 18:39:32 UTC
Comment 4 Mikayla Hutchinson [MSFT] 2013-10-24 16:31:07 UTC
*** Bug 15498 has been marked as a duplicate of this bug. ***
Comment 5 Martin Baulig 2013-10-24 21:09:42 UTC
I'm using Mavericks with an external display.  This commit fixes it for me :-)

Thanks a lot for the quick fix!
Comment 6 Eddy Zavaleta 2013-11-13 19:51:35 UTC
This still happens on Xamarin Studio Version 4.1.13 (build 17). I'm using Mavericks OS X 10.9 (13A603).

$ mono --version
Mono JIT compiler version 3.2.4 ((no/294f999 Fri Oct 25 20:18:12 EDT 2013)
Copyright (C) 2002-2012 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           normal
	SIGSEGV:       altstack
	Notification:  kqueue
	Architecture:  x86
	Disabled:      none
	Misc:          softdebug 
	LLVM:          yes(3.3svn-mono)
	GC:            sgen
Comment 7 Kraig McConaghy 2013-11-13 19:53:19 UTC
Also still happens in
Comment 8 Cody Russell 2013-11-13 19:54:25 UTC
It will be fixed with Mono 3.2.6 release.
Comment 9 Kraig McConaghy 2013-11-17 13:38:18 UTC
When can we expect Mono 3.2.6
Comment 10 Mikayla Hutchinson [MSFT] 2013-11-20 13:33:49 UTC
*** Bug 16212 has been marked as a duplicate of this bug. ***
Comment 11 Kraig McConaghy 2013-12-04 22:23:58 UTC
When can we expect Mono 3.2.6
Comment 12 Eddy Zavaleta 2013-12-09 13:54:42 UTC
This is fixed now.

Xamarin Studio Version 4.3.0 (build 52).
Mono JIT compiler version 3.2.5 ((no/964e8f0 Thu Nov 14 14:48:50 EST 2013)
Comment 13 Mikayla Hutchinson [MSFT] 2013-12-17 19:29:22 UTC
*** Bug 16853 has been marked as a duplicate of this bug. ***
Comment 14 Mohit Kheterpal 2013-12-26 03:02:29 UTC
*** Bug 16956 has been marked as a duplicate of this bug. ***
Comment 15 Mohit Kheterpal 2013-12-26 03:09:42 UTC
Today we have checked this issue with following builds :

XS 4.2.2 (build 2)

Now we are not getting this issue any more i.e menu items are not disabled when Xamarin Studio is in fullscreen mode.

Screencast : http://screencast.com/t/iS3LvQ1Ht

Hence closing this issue.
Comment 16 Stefan Fisk 2014-01-07 13:09:35 UTC
I am currently experiencing this issue in 4.2.2 (build 2) (Beta channel).

Alpha seems to be OK though (4.3.0, build 52), but it breaks other stuff ,ó_Ò,
Comment 17 Geir Sagberg 2014-01-14 08:42:42 UTC
I am also experiencing the issue in 4.2.2 (build 2) (stable channel).
Comment 18 Liviu 2014-01-24 03:43:50 UTC
I am still experiencing it in 4.2.2 stable!
OSX Mavericks.
Please reopen fix this bug it's frustrating.
Comment 19 Mikayla Hutchinson [MSFT] 2014-01-24 15:23:20 UTC
This fix did not make it into the branch from which XS 4.2.2 was released. It's in XS 4.2.3, which is currently available in the beta channel.
Comment 20 Liviu 2014-01-24 17:12:31 UTC
That's an excellent news. Thanks.
Comment 21 Philippe Durand 2014-10-21 23:40:35 UTC
This bug is still present in 5.6.2 for me.

As soon as I go Full Screen in Xamarin Studio, all menu options are disabled.

I am using OSX 10.10 Yosemite.
Comment 22 Philippe Durand 2014-10-21 23:42:33 UTC
Created attachment 8464 [details]
Screenshot of issue ongoing in 5.6.2

This is a screenshot of Xamarin Studio 5.6.2 running on OSX Yosemite in Full Screen.
Comment 23 Eddy Zavaleta 2014-10-21 23:47:45 UTC
This bug raised again with OS X Yosemite Version 10.10 (14A389).

Xamarin Studio 5.6.2
Mono 3.10.0 (633e444)
Comment 24 Cody Russell 2014-10-22 01:21:09 UTC
Yes, it was filed again as bug #21148. It's been fixed again, but that fix hasn't made it into a release yet. It will be out soon though.
Comment 25 Philippe Durand 2014-10-22 01:22:08 UTC
That's great! Sorry I didn't browse all the bugs that were reported.
Comment 26 Cody Russell 2014-10-22 12:13:13 UTC
No worries, that's my job. ;)

Thanks for reporting the issue again! We'll get the fix out pretty soon.
Comment 27 greenland 2016-04-18 02:41:20 UTC
It's back again in 6.0 beta.
Comment 28 Cody Russell 2016-04-18 14:06:10 UTC
I'm not able to reproduce it here. Can you include your build info and also your version of OSX?
Comment 29 greenland 2016-04-19 02:32:42 UTC
Upon further testing it seems I'm only able to reproduce this when in El Capitan SPLIT full screen view.

I tried with different apps and left and right positions.
It reverts to normal when closing the other app and returning to single app full screen.
Previously, i'd somehow managed to get the bug to persist even after exiting split screen mode, but I'm unable to reproduce that.

Xamarin Studio Community 6.0 (build 4968)
OS X El Capitan Version 10.11.4 (15E65)