mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 07:35:38 +00:00
(Windows) Fixed a window focusing issue when hiding the taskbar.
This commit is contained in:
parent
171679efa9
commit
9e86908a47
|
@ -459,18 +459,6 @@ int main(int argc, char* argv[])
|
|||
outputToConsole(true);
|
||||
#endif
|
||||
|
||||
#if defined(_WIN64)
|
||||
// Hide taskbar if the setting for this is enabled.
|
||||
bool taskbarStateChanged = false;
|
||||
unsigned int taskbarState;
|
||||
|
||||
if (Settings::getInstance()->getBool("HideTaskbar")) {
|
||||
taskbarStateChanged = true;
|
||||
taskbarState = getTaskbarState();
|
||||
hideTaskbar();
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(FREEIMAGE_LIB)
|
||||
// Call this ONLY when linking with FreeImage as a static library.
|
||||
FreeImage_Initialise();
|
||||
|
@ -567,6 +555,18 @@ int main(int argc, char* argv[])
|
|||
SDL_SetRelativeMouseMode(SDL_TRUE);
|
||||
#endif
|
||||
|
||||
#if defined(_WIN64)
|
||||
// Hide taskbar if the setting for this is enabled.
|
||||
bool taskbarStateChanged = false;
|
||||
unsigned int taskbarState;
|
||||
|
||||
if (Settings::getInstance()->getBool("HideTaskbar")) {
|
||||
taskbarStateChanged = true;
|
||||
taskbarState = getTaskbarState();
|
||||
hideTaskbar();
|
||||
}
|
||||
#endif
|
||||
|
||||
if (splashScreen) {
|
||||
std::string progressText = "Loading...";
|
||||
if (splashScreenProgress)
|
||||
|
|
Loading…
Reference in a new issue