Fixed menus in fullscreen mode on Windows. Fixes #739.
https://doc.qt.io/qt-5/windows-issues.html#fullscreen-opengl-based-windows
This commit is contained in:
@@ -12,6 +12,10 @@
|
||||
#include "camera.h"
|
||||
#include "lc_previewwidget.h"
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
#include <QtPlatformHeaders\QWindowsWindowFunctions>
|
||||
#endif
|
||||
|
||||
lcApplication* gApplication;
|
||||
|
||||
void lcPreferences::LoadDefaults()
|
||||
@@ -1192,6 +1196,10 @@ lcStartupMode lcApplication::Initialize(const QList<QPair<QString, bool>>& Libra
|
||||
gMainWindow->GetPartSelectionWidget()->SetDefaultPart();
|
||||
gMainWindow->UpdateRecentFiles();
|
||||
gMainWindow->show();
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
QWindowsWindowFunctions::setHasBorderInFullScreen(gMainWindow->windowHandle(), true);
|
||||
#endif
|
||||
}
|
||||
|
||||
return SaveAndExit ? lcStartupMode::Success : lcStartupMode::ShowWindow;
|
||||
|
||||
Reference in New Issue
Block a user