mirror of
https://github.com/ocornut/imgui.git
synced 2026-05-22 06:04:58 +08:00
Backends: GLFW: fix previous commit, would break multi-monitor. (#9195, #7902, #5683)
build / Build - Windows (push) Has been cancelled
build / Build - Linux (push) Has been cancelled
build / Build - MacOS (push) Has been cancelled
build / Build - iOS (push) Has been cancelled
build / Build - Emscripten (push) Has been cancelled
build / Build - Android (push) Has been cancelled
build / Test - Windows (push) Has been cancelled
build / Test - Linux (push) Has been cancelled
build / Build - Windows (push) Has been cancelled
build / Build - Linux (push) Has been cancelled
build / Build - MacOS (push) Has been cancelled
build / Build - iOS (push) Has been cancelled
build / Build - Emscripten (push) Has been cancelled
build / Build - Android (push) Has been cancelled
build / Test - Windows (push) Has been cancelled
build / Test - Linux (push) Has been cancelled
Amend be2cfc2
This commit is contained in:
@@ -1107,7 +1107,7 @@ static void ImGui_ImplGlfw_UpdateMonitors()
|
||||
// Happens on macOS sleeping (#5683) and seemingly occasionally on Windows (#9195)
|
||||
if (!updated_monitors)
|
||||
platform_io.Monitors.resize(0);
|
||||
updated_monitors = false;
|
||||
updated_monitors = true;
|
||||
platform_io.Monitors.push_back(monitor);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user