summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTelesto <telesto@surfxs.nl>2018-01-22 15:16:52 +0200
committerAndras Timar <andras.timar@collabora.com>2018-02-06 15:27:25 +0100
commit7aab88ca7c0a499944f6abb83ba741f2146fd3f6 (patch)
treeaa90580ecfc5bcc26caba8303ce615d85c7a09f7
parentcfb68bab5fdbcfbb9370cf59cc3c1d5acd6f9737 (diff)
tdf#114985: Tell NSWindow to never use automatic window tabbing
Based on https://codereview.chromium.org/2325313002/ 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 (cherry picked from commit 5163257c0d194f534887d92c6c9658640eeef3e1) Signed-off-by: Andras Timar <andras.timar@collabora.com> Change-Id: I8838449d57b1d1b010491a405c87645d38199fdf (cherry picked from commit be97780787913e0311888d0031b86c8a552e9973)
-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 4c38466961b0..25a83c74b278 100644
--- a/vcl/osx/vclnsapp.mm
+++ b/vcl/osx/vclnsapp.mm
@@ -75,6 +75,11 @@ SAL_WNODEPRECATED_DECLARATIONS_PUSH
SAL_WNODEPRECATED_DECLARATIONS_POP
if( pEvent )
[NSApp postEvent: pEvent atStart: NO];
+
+ if( [NSWindow respondsToSelector:@selector(allowsAutomaticWindowTabbing)] )
+ {
+ NSWindow.allowsAutomaticWindowTabbing = NO;
+ }
}
-(void)sendEvent:(NSEvent*)pEvent