diff options
author | Vsevolod Kukol <sevoku@microsoft.com> | 2018-04-13 17:19:13 +0300 |
---|---|---|
committer | Vsevolod Kukol <sevoku@microsoft.com> | 2018-04-13 17:19:13 +0300 |
commit | 5d2689167cdf79941b47fe64fb300aa8009ef5a6 (patch) | |
tree | ae709b12794a2286e95b4b2e58b7c93503e6390d /main/src | |
parent | 6911820a5f3881ee7e88df414c4dfe4540f8301d (diff) |
[Mac] Disallow window tabbing mode
Fixes VSTS #600128 – [Feedback] Cursor position is shifted because of the bar with project name, opened file name and Visual Studio IDE type
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/addins/MacPlatform/MacPlatform.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/main/src/addins/MacPlatform/MacPlatform.cs b/main/src/addins/MacPlatform/MacPlatform.cs index a73b1ac1f2..706c2df483 100644 --- a/main/src/addins/MacPlatform/MacPlatform.cs +++ b/main/src/addins/MacPlatform/MacPlatform.cs @@ -294,6 +294,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; } @@ -454,6 +458,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; }; } |