mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 07:49:42 +01:00
Try another way to Lion-check
This commit is contained in:
parent
36738fc9e4
commit
0f4b1bc91b
@ -20,9 +20,10 @@
|
||||
|
||||
#include "macdelegate.h"
|
||||
#include "macshortcuthandler.h"
|
||||
#include "tomahawkapp.h"
|
||||
#include "config.h"
|
||||
|
||||
#include "AvailabilityMacros.h"
|
||||
|
||||
#import <AppKit/NSApplication.h>
|
||||
#import <Foundation/NSAutoreleasePool.h>
|
||||
#import <Foundation/NSBundle.h>
|
||||
@ -40,6 +41,10 @@
|
||||
#import <Sparkle/SUUpdater.h>
|
||||
#endif
|
||||
|
||||
#if defined(MAC_OS_X_VERSION_10_7)
|
||||
#include "tomahawkapp.h"
|
||||
#endif
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
// Capture global media keys on Mac (Cocoa only!)
|
||||
@ -236,7 +241,8 @@ void Tomahawk::checkForUpdates() {
|
||||
|
||||
void Tomahawk::enableFullscreen()
|
||||
{
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7
|
||||
#if defined(MAC_OS_X_VERSION_10_7)
|
||||
qDebug() << "Enabling Lion Full-screeen";
|
||||
NSView *nsview = (NSView *)APP->mainWindow()->winId();
|
||||
NSWindow *nswindow = [nsview window];
|
||||
[nswindow setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary];
|
||||
|
Loading…
x
Reference in New Issue
Block a user