mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-13 10:32:11 +01:00
parent
033f701784
commit
e8807fd901
|
@ -17,12 +17,15 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* ============================================================ */
|
* ============================================================ */
|
||||||
#import <AppKit/AppKit.h>
|
#import <AppKit/AppKit.h>
|
||||||
|
#import <Availability.h>
|
||||||
|
|
||||||
// code taken from: https://www.mail-archive.com/interest@qt-project.org/msg23593.html
|
// code taken from: https://www.mail-archive.com/interest@qt-project.org/msg23593.html
|
||||||
// Disables auto window tabbing where supported, otherwise a no-op.
|
// Disables auto window tabbing where supported, otherwise a no-op.
|
||||||
void disableWindowTabbing()
|
void disableWindowTabbing()
|
||||||
{
|
{
|
||||||
|
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 101200
|
||||||
if ([NSWindow respondsToSelector:@selector(allowsAutomaticWindowTabbing)]) {
|
if ([NSWindow respondsToSelector:@selector(allowsAutomaticWindowTabbing)]) {
|
||||||
NSWindow.allowsAutomaticWindowTabbing = NO;
|
NSWindow.allowsAutomaticWindowTabbing = NO;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user