Skip to content

Commit

Permalink
Correction of window overlay behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
gansm committed Apr 2, 2024
1 parent 0078fd6 commit bdc141f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions final/vterm/fvterm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,8 @@ auto FVTerm::isCovered (const FPoint& pos, const FTermArea* area) const noexcept
}
}

found = bool( area == win );
if ( area == win )
found = true;
}

return is_covered;
Expand Down Expand Up @@ -1282,7 +1283,8 @@ void FVTerm::passChangesToOverlap (const FTermArea* area) const
passChangesToOverlappingWindow (win, area);
}

found = bool( win == area );
if ( area == win )
found = true;
}
}

Expand Down Expand Up @@ -1351,8 +1353,8 @@ void FVTerm::restoreOverlaidWindows (const FTermArea* area) const noexcept

if ( overlaid && win && win->visible && win->isOverlapped(area) )
copyArea (vterm.get(), FPoint{win->position.x + 1, win->position.y + 1}, win);
else
overlaid = bool( getVWin() == win );
else if ( getVWin() == win )
overlaid = true;
}
}

Expand Down

0 comments on commit bdc141f

Please sign in to comment.