This commit is contained in:
Enrico Forestieri 2017-05-17 22:31:27 +02:00
parent 8180b9f97c
commit 922d1ddc8c

View File

@ -188,6 +188,12 @@ frontend::Application * createApplication(int & argc, char * argv[])
} }
} }
#endif #endif
#if defined(Q_OS_WIN) || defined(Q_CYGWIN_WIN)
// On Windows, allow bringing the LyX window to top
AllowSetForegroundWindow(ASFW_ANY);
#endif
frontend::GuiApplication * guiApp = new frontend::GuiApplication(argc, argv); frontend::GuiApplication * guiApp = new frontend::GuiApplication(argc, argv);
// I'd rather do that in the constructor, but I do not think that // I'd rather do that in the constructor, but I do not think that
// the palette is accessible there. // the palette is accessible there.