Преглед изворни кода

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

BDisp пре 1 година
родитељ
комит
8a779505b3
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Terminal.Gui/ConsoleDrivers/CursesDriver/UnixMainLoop.cs

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