mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 07:47:54 +01:00
Merge pull request #2266 from AaronLieberman/unix-idle-fix
Fixes #2265 - Keyboard input doesn't work in UnixMainLoop when Idle function is registered
This commit is contained in:
@@ -181,16 +181,15 @@ namespace Terminal.Gui {
|
||||
{
|
||||
UpdatePollMap ();
|
||||
|
||||
if (CheckTimers (wait, out var pollTimeout)) {
|
||||
return true;
|
||||
}
|
||||
bool checkTimersResult = CheckTimers (wait, out var pollTimeout);
|
||||
|
||||
var n = poll (pollmap, (uint)pollmap.Length, pollTimeout);
|
||||
|
||||
if (n == KEY_RESIZE) {
|
||||
winChanged = true;
|
||||
}
|
||||
return n >= KEY_RESIZE || CheckTimers (wait, out pollTimeout);
|
||||
|
||||
return checkTimersResult || n >= KEY_RESIZE;
|
||||
}
|
||||
|
||||
bool CheckTimers (bool wait, out int pollTimeout)
|
||||
|
||||
Reference in New Issue
Block a user