We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5ca5b0 commit 22cf4e3Copy full SHA for 22cf4e3
Terminal.Gui/ConsoleDrivers/CursesDriver/UnixMainLoop.cs
@@ -82,6 +82,7 @@ class Watch {
82
bool poll_dirty = true;
83
int [] wakeupPipes = new int [2];
84
static IntPtr ignore = Marshal.AllocHGlobal (1);
85
+ static IntPtr readHandle = Marshal.AllocHGlobal (1);
86
MainLoop mainLoop;
87
bool winChanged;
88
@@ -97,7 +98,7 @@ void IMainLoopDriver.Setup (MainLoop mainLoop)
97
98
this.mainLoop = mainLoop;
99
pipe (wakeupPipes);
100
AddWatch (wakeupPipes [0], Condition.PollIn, ml => {
- read (wakeupPipes [0], ignore, (IntPtr)1);
101
+ read (wakeupPipes [0], ignore, readHandle);
102
return true;
103
});
104
}
0 commit comments