Warning, /network/falkon/src/lib/tools/disablewindowtabbbing.mm is written in an unsupported language. File is not indexed.
0001 /* ============================================================ 0002 * Falkon - Qt web browser 0003 * Copyright (C) 2017 David Rosca <nowrep@gmail.com> 0004 * Copyright (C) 2017 S. Razi Alavizadeh <s.r.alavizadeh@gmail.com> 0005 * 0006 * This program is free software: you can redistribute it and/or modify 0007 * it under the terms of the GNU General Public License as published by 0008 * the Free Software Foundation, either version 3 of the License, or 0009 * (at your option) any later version. 0010 * 0011 * This program is distributed in the hope that it will be useful, 0012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0014 * GNU General Public License for more details. 0015 * 0016 * You should have received a copy of the GNU General Public License 0017 * along with this program. If not, see <http://www.gnu.org/licenses/>. 0018 * ============================================================ */ 0019 #import <AppKit/AppKit.h> 0020 #import <Availability.h> 0021 0022 // code taken from: https://www.mail-archive.com/interest@qt-project.org/msg23593.html 0023 // Disables auto window tabbing where supported, otherwise a no-op. 0024 void disableWindowTabbing() 0025 { 0026 #if __MAC_OS_X_VERSION_MAX_ALLOWED >= 101200 0027 if ([NSWindow respondsToSelector:@selector(allowsAutomaticWindowTabbing)]) { 0028 NSWindow.allowsAutomaticWindowTabbing = NO; 0029 } 0030 #endif 0031 }