Skip to content

Commit

Permalink
Mac OS X|Fixed: Fullscreen mode in 10.4 (Carbon)
Browse files Browse the repository at this point in the history
Must use the Carbon framework to adjust window level because Qt uses
Carbon in the 10.4+ distrib.
  • Loading branch information
skyjake committed Apr 2, 2012
1 parent 84f9e9b commit fee81b5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doomsday/engine/mac/src/displaymode_macx.mm
Expand Up @@ -26,8 +26,10 @@
#include <CoreFoundation/CoreFoundation.h>
#include <ApplicationServices/ApplicationServices.h>
#include <AppKit/AppKit.h>
#ifdef MACOS_10_4
# include <Carbon/Carbon.h>
#endif
#include <vector>
#include <QDebug>

#include "window.h"

Expand Down Expand Up @@ -199,10 +201,8 @@ void DisplayMode_Native_Raise(void* nativeHandle)
[wnd setLevel:CGShieldingWindowLevel()];
#else
// Qt uses the Carbon framework.
WindowRef* wnd = HIViewGetWindow((HIViewRef*) nativeHandle);
qWarning() << "wnd:" << wnd;
WindowGroupRef* wndGroup = GetWindowGroup(wnd);
qWarning() << "wndGroup:" << wndGroup;
WindowRef wnd = HIViewGetWindow((HIViewRef) nativeHandle);
WindowGroupRef wndGroup = GetWindowGroup(wnd);
SetWindowGroupLevel(wndGroup, CGShieldingWindowLevel());
#endif
}
Expand Down

0 comments on commit fee81b5

Please sign in to comment.