summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTelesto <telesto@surfxs.nl>2018-01-22 15:16:52 +0200
committerTor Lillqvist <tml@collabora.com>2018-01-23 14:18:24 +0100
commit5163257c0d194f534887d92c6c9658640eeef3e1 (patch)
tree595f54ad360ae0d51b0f860c8a99add3013b06c8
parent2b6db99279fcfbbe3ba3720f92c36b8ecd49635a (diff)
tdf#114985: Tell NSWindow to never use automatic window tabbing
Based on https://codereview.chromium.org/2325313002/ Change-Id: I8838449d57b1d1b010491a405c87645d38199fdf Reviewed-on: https://gerrit.libreoffice.org/48330 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tor Lillqvist <tml@collabora.com> (cherry picked from commit ce88f2a7374bb8c53d57e8263e0701db19d62f30) Reviewed-on: https://gerrit.libreoffice.org/48384
-rw-r--r--vcl/osx/vclnsapp.mm5
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/osx/vclnsapp.mm b/vcl/osx/vclnsapp.mm
index 473c8d7f9a30..a4f00e32c4f0 100644
--- a/vcl/osx/vclnsapp.mm
+++ b/vcl/osx/vclnsapp.mm
@@ -75,6 +75,11 @@ SAL_WNODEPRECATED_DECLARATIONS_PUSH
SAL_WNODEPRECATED_DECLARATIONS_POP
assert( pEvent );
[NSApp postEvent: pEvent atStart: NO];
+
+ if( [NSWindow respondsToSelector:@selector(allowsAutomaticWindowTabbing)] )
+ {
+ NSWindow.allowsAutomaticWindowTabbing = NO;
+ }
}
-(void)sendEvent:(NSEvent*)pEvent