Skip to content

Commit

Permalink
Only invoke WinChanged event if _windowSize isn't empty.
Browse files Browse the repository at this point in the history
  • Loading branch information
BDisp committed Sep 1, 2023
1 parent 294d7c7 commit bbe3ea9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Terminal.Gui/ConsoleDrivers/WindowsDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1796,8 +1796,8 @@ void WaitWinChange ()
while (true) {
Task.Delay (500).Wait ();
_windowSize = _winConsole.GetConsoleBufferWindow (out _);
if (_windowSize != Size.Empty && _windowSize.Width != _consoleDriver.Cols
|| _windowSize.Height != _consoleDriver.Rows) {
if (_windowSize != Size.Empty && (_windowSize.Width != _consoleDriver.Cols
|| _windowSize.Height != _consoleDriver.Rows)) {
return;
}
}
Expand Down

0 comments on commit bbe3ea9

Please sign in to comment.