Przeglądaj źródła

Fixes freezing on resizing when read function is executed and many Wakeup calls are done.

BDisp 1 rok temu
rodzic
commit
8a779505b3

+ 1 - 1
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;
 			});
 		}