From e04aee581adc7bd3ae50eefc391ff4292c89f32a Mon Sep 17 00:00:00 2001 From: Katie M Date: Tue, 30 Apr 2024 21:14:18 -0400 Subject: [PATCH] reverting an earlier optimization to try and skip over the debug window when determining the windows on screen --- src/third-party/imtui/imtui-impl-ncurses.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/third-party/imtui/imtui-impl-ncurses.cpp b/src/third-party/imtui/imtui-impl-ncurses.cpp index 6cf7399227733..76d32b249fb0e 100644 --- a/src/third-party/imtui/imtui-impl-ncurses.cpp +++ b/src/third-party/imtui/imtui-impl-ncurses.cpp @@ -287,8 +287,7 @@ static std::array, 256 * 256> colPairs; bool is_in_bounds( int x, int y ) { ImGuiContext *ctxt = ImGui::GetCurrentContext(); - // skip the first window, since ImGui seems to always have a "dummy" window that takes up most of the screen - for( int index = 1; index < ctxt->Windows.size(); index++ ) { + for( int index = 0; index < ctxt->Windows.size(); index++ ) { ImGuiWindow *win = ctxt->Windows[index]; if(win->Collapsed || !win->Active) { continue;