]> git.lyx.org Git - lyx.git/commitdiff
Fix bug #10469
authorEnrico Forestieri <forenr@lyx.org>
Sat, 20 May 2017 00:36:16 +0000 (02:36 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Sat, 20 May 2017 00:36:16 +0000 (02:36 +0200)
src/frontends/qt4/GuiApplication.cpp
status.22x

index efea71c5c22811b2fe3cd606adf18d1539a3a187..58065585374cb39fcfdac5d6626ca3c95746d3b2 100644 (file)
@@ -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.
index bed1d560ae68e79223ae069916cf73a797716d0f..b0dfced5fda6cdc4b18e0044e8484d6c827df371 100644 (file)
@@ -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