1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

Fix build on macOS < 10.12

Closes #2473
This commit is contained in:
David Rosca 2017-11-08 11:23:03 +01:00
parent 033f701784
commit e8807fd901

View File

@ -17,12 +17,15 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* ============================================================ */
#import <AppKit/AppKit.h>
#import <Availability.h>
// code taken from: https://www.mail-archive.com/interest@qt-project.org/msg23593.html
// Disables auto window tabbing where supported, otherwise a no-op.
void disableWindowTabbing()
{
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 101200
if ([NSWindow respondsToSelector:@selector(allowsAutomaticWindowTabbing)]) {
NSWindow.allowsAutomaticWindowTabbing = NO;
}
#endif
}