Cocoa: Fix raise/lower.
authorMorten Sorvig <morten.sorvig@nokia.com>
Fri, 1 Jul 2011 08:02:56 +0000 (10:02 +0200)
committerMorten Sorvig <morten.sorvig@nokia.com>
Fri, 1 Jul 2011 08:02:56 +0000 (10:02 +0200)
src/plugins/platforms/cocoa/qcocoawindow.mm

index 28afd0a..984e616 100644 (file)
@@ -118,12 +118,12 @@ void QCocoaWindow::setWindowTitle(const QString &title)
 void QCocoaWindow::raise()
 {
     // ### handle spaces (see Qt 4 raise_sys in qwidget_mac.mm)
-    [m_nsWindow orderFront];
+    [m_nsWindow orderFront: m_nsWindow];
 }
 
 void QCocoaWindow::lower()
 {
-    [m_nsWindow orderBack];
+    [m_nsWindow orderFront: m_nsWindow];
 }
 
 WId QCocoaWindow::winId() const