Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authorLluis Sanchez <llsan@microsoft.com>2018-04-13 18:31:25 +0300
committerGitHub <noreply@github.com>2018-04-13 18:31:25 +0300
commit66ee942a83b8ace603f85f5b510cb56b1f7f2ddc (patch)
tree873f9d6d708929249e414ae45b146bc5d0ae4fb6 /main/src
parent4c4489fbe25196aafcce453d11048f53cccaf991 (diff)
parent5d2689167cdf79941b47fe64fb300aa8009ef5a6 (diff)
Merge pull request #4558 from mono/fix600128-disallow-nswindow-tabbing
[600128][Mac] Disallow window tabbing mode
Diffstat (limited to 'main/src')
-rw-r--r--main/src/addins/MacPlatform/MacPlatform.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/main/src/addins/MacPlatform/MacPlatform.cs b/main/src/addins/MacPlatform/MacPlatform.cs
index b846f873d1..58fc4bcbd4 100644
--- a/main/src/addins/MacPlatform/MacPlatform.cs
+++ b/main/src/addins/MacPlatform/MacPlatform.cs
@@ -289,6 +289,10 @@ namespace MonoDevelop.MacIntegration
Gtk.Rc.ParseString ("style \"radio-or-check-box\" { engine \"xamarin\" { focusstyle = 2 } } ");
}
+ // Disallow window tabbing globally
+ if (MacSystemInformation.OsVersion >= MacSystemInformation.Sierra)
+ NSWindow.AllowsAutomaticWindowTabbing = false;
+
return loaded;
}
@@ -449,6 +453,8 @@ namespace MonoDevelop.MacIntegration
IdeApp.Workbench.RootWindow.Realized += (sender, args) => {
var win = GtkQuartz.GetWindow ((Gtk.Window) sender);
win.CollectionBehavior |= NSWindowCollectionBehavior.FullScreenPrimary;
+ if (MacSystemInformation.OsVersion >= MacSystemInformation.Sierra)
+ win.TabbingMode = NSWindowTabbingMode.Disallowed;
};
}