From a513242252df978151124f80760f7e00758a7a90 Mon Sep 17 00:00:00 2001 From: manongjohn Date: Oct 08 2019 19:26:26 +0000 Subject: Fix starting OT in fullscreen mode --- diff --git a/toonz/sources/toonz/main.cpp b/toonz/sources/toonz/main.cpp index d74c485..3c9d6a6 100644 --- a/toonz/sources/toonz/main.cpp +++ b/toonz/sources/toonz/main.cpp @@ -620,6 +620,11 @@ int main(int argc, char *argv[]) { /*-- Layoutファイル名をMainWindowのctorに渡す --*/ MainWindow w(argumentLayoutFileName); +#ifdef _WIN32 + // http://doc.qt.io/qt-5/windows-issues.html#fullscreen-opengl-based-windows + QWindowsWindowFunctions::setHasBorderInFullScreen(w.windowHandle(), true); +#endif + splash.showMessage(offsetStr + "Loading style sheet ...", Qt::AlignCenter, Qt::white); a.processEvents(); @@ -663,11 +668,6 @@ int main(int argc, char *argv[]) { if (Preferences::instance()->isLatestVersionCheckEnabled()) w.checkForUpdates(); -#ifdef _WIN32 - // http://doc.qt.io/qt-5/windows-issues.html#fullscreen-opengl-based-windows - QWindowsWindowFunctions::setHasBorderInFullScreen(w.windowHandle(), true); -#endif - w.show(); // Show floating panels only after the main window has been shown