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