From 8a779505b3d6ecd88fc3280b1d883ad8a433f33b Mon Sep 17 00:00:00 2001 From: BDisp Date: Sat, 23 Sep 2023 21:44:51 +0100 Subject: [PATCH] Fixes freezing on resizing when read function is executed and many Wakeup calls are done. --- Terminal.Gui/ConsoleDrivers/CursesDriver/UnixMainLoop.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Terminal.Gui/ConsoleDrivers/CursesDriver/UnixMainLoop.cs b/Terminal.Gui/ConsoleDrivers/CursesDriver/UnixMainLoop.cs index 7ffa43eea..3e23b78a5 100644 --- a/Terminal.Gui/ConsoleDrivers/CursesDriver/UnixMainLoop.cs +++ b/Terminal.Gui/ConsoleDrivers/CursesDriver/UnixMainLoop.cs @@ -97,7 +97,7 @@ namespace Terminal.Gui { this.mainLoop = mainLoop; pipe (wakeupPipes); AddWatch (wakeupPipes [0], Condition.PollIn, ml => { - read (wakeupPipes [0], ignore, (IntPtr)1); + read (wakeupPipes [1], ignore, (IntPtr)1); return true; }); }