diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-29 14:24:53 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-29 14:24:53 +0100 |
commit | 40d5a7a06aea896cf38a9efa8d040382ad69a2b0 (patch) | |
tree | 63898a7677ff065e785ed5607ad8e275a8ecf3bc /editor/imgui.cpp | |
parent | 06a7c514052e180e5ec35e84dac0292d54515cb2 (diff) |
imgui: push some id's
Diffstat (limited to 'editor/imgui.cpp')
-rw-r--r-- | editor/imgui.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/editor/imgui.cpp b/editor/imgui.cpp index 15f6bc37..e1b39d07 100644 --- a/editor/imgui.cpp +++ b/editor/imgui.cpp @@ -154,13 +154,16 @@ void app::draw_editor_pane(float main_menu_height) if (main_menu_height > 0) { + const auto b = push_id("editor"); + ImGui::SetNextWindowPos({0, main_menu_height+style.WindowPadding.y}); ImGui::SetNextFrameWantCaptureKeyboard(false); ImGui::SetNextWindowSize({425 * dpi, window_size[1] - main_menu_height - style.WindowPadding.y}); if (const auto flags = ImGuiWindowFlags_(ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoSavedSettings); auto b = begin_window({}, flags)) { - if (auto b = begin_list_box("##atlases", {-FLT_MIN, -1})) + const auto b2 = push_id("editor-pane"); + if (auto b3 = begin_list_box("##atlases", {-FLT_MIN, -1})) { if (ed) for (const auto& [k, v] : *ed) |