From 05d4332152ce8fdba42e894c4246752d2c1c0aab Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sat, 20 May 2017 02:36:16 +0200 Subject: [PATCH] Fix bug #10469 --- src/frontends/qt4/GuiApplication.cpp | 6 ++++++ status.22x | 1 + 2 files changed, 7 insertions(+) diff --git a/src/frontends/qt4/GuiApplication.cpp b/src/frontends/qt4/GuiApplication.cpp index efea71c5c2..5806558537 100644 --- a/src/frontends/qt4/GuiApplication.cpp +++ b/src/frontends/qt4/GuiApplication.cpp @@ -184,6 +184,12 @@ frontend::Application * createApplication(int & argc, char * argv[]) } } #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); // I'd rather do that in the constructor, but I do not think that // the palette is accessible there. diff --git a/status.22x b/status.22x index bed1d560ae..b0dfced5fd 100644 --- a/status.22x +++ b/status.22x @@ -22,6 +22,7 @@ What's new * USER INTERFACE +- On Windows, allow to automatically bring the LyX window to top (bug 10469). * DOCUMENTATION AND LOCALIZATION -- 2.39.2