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
1 changed files with 3 additions and 4 deletions

View File

@ -2165,6 +2165,9 @@ bool FurnaceGUI::loop() {
if (firstFrame) {
firstFrame=false;
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))) {
@ -2624,10 +2627,6 @@ bool FurnaceGUI::init() {
firstFrame=true;
#ifdef __APPLE__
SDL_RaiseWindow(sdlWin);
#endif
return true;
}