Skip to content

Commit

Permalink
reverting an earlier optimization to try and skip over the debug wind…
Browse files Browse the repository at this point in the history
…ow when determining the windows on screen
  • Loading branch information
katemonster33 committed May 3, 2024
1 parent 9ca6f02 commit e04aee5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/third-party/imtui/imtui-impl-ncurses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,7 @@ static std::array<std::pair<bool, int>, 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;
Expand Down

0 comments on commit e04aee5

Please sign in to comment.