diff --git a/platforms/desktop-shared/gui.cpp b/platforms/desktop-shared/gui.cpp index b0ca666..844913f 100644 --- a/platforms/desktop-shared/gui.cpp +++ b/platforms/desktop-shared/gui.cpp @@ -1080,7 +1080,7 @@ static void main_window(void) int window_y = ((h - (h_corrected * scale_multiplier)) / 2) + (config_emulator.show_menu ? main_menu_height : 0); ImGui::SetNextWindowSize(ImVec2((float)main_window_width, (float)main_window_height)); - ImGui::SetNextWindowPos(ImVec2((float)window_x, (float)window_y)); + ImGui::SetNextWindowPos(ImGui::GetMainViewport()->Pos + ImVec2((float)window_x, (float)window_y)); ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, 0.0f); flags |= ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoNav | ImGuiWindowFlags_NoBringToFrontOnFocus;