GUI: hopefully better workaround to macOS #4

This commit is contained in:
tildearrow 2022-03-22 15:37:36 -05:00
parent c24ad24a03
commit a199c102ce

View file

@ -2165,6 +2165,9 @@ bool FurnaceGUI::loop() {
if (firstFrame) { if (firstFrame) {
firstFrame=false; firstFrame=false;
if (patternOpen) nextWindow=GUI_WINDOW_PATTERN; if (patternOpen) nextWindow=GUI_WINDOW_PATTERN;
#ifdef __APPLE__
SDL_RaiseWindow(sdlWin);
#endif
} }
if (fileDialog->render(ImVec2(600.0f*dpiScale,400.0f*dpiScale),ImVec2(scrW*dpiScale,scrH*dpiScale))) { if (fileDialog->render(ImVec2(600.0f*dpiScale,400.0f*dpiScale),ImVec2(scrW*dpiScale,scrH*dpiScale))) {
@ -2624,10 +2627,6 @@ bool FurnaceGUI::init() {
firstFrame=true; firstFrame=true;
#ifdef __APPLE__
SDL_RaiseWindow(sdlWin);
#endif
return true; return true;
} }