From: Flavio Date: Thu, 3 Mar 2011 13:48:12 +0000 (+0100) Subject: Fix window positioning in Carbon and Cocoa X-Git-Tag: 1.4.1~3^2~6 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=27968f902a0b09b79d5198fae7783986c9b77f66;p=minitube Fix window positioning in Carbon and Cocoa --- diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index aa45d4f..b80cbea 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -474,7 +474,11 @@ void MainWindow::readSettings() { restoreGeometry(settings.value("geometry").toByteArray()); #ifdef APP_MAC if (!isMaximized()) +#ifdef QT_MAC_USE_COCOA + move(x(), y() + 10); +#else move(x(), y() + mainToolBar->height() + 8); +#endif #endif setDefinitionMode(settings.value("definition", VideoDefinition::getDefinitionNames().first()).toString()); audioOutput->setVolume(settings.value("volume", 1).toDouble());