|
@@ -82,7 +82,6 @@ namespace Terminal.Gui {
|
|
|
bool poll_dirty = true;
|
|
|
int [] wakeupPipes = new int [2];
|
|
|
static IntPtr ignore = Marshal.AllocHGlobal (1);
|
|
|
- static IntPtr readHandle = Marshal.AllocHGlobal (1);
|
|
|
MainLoop mainLoop;
|
|
|
bool winChanged;
|
|
|
|
|
@@ -97,8 +96,8 @@ namespace Terminal.Gui {
|
|
|
{
|
|
|
this.mainLoop = mainLoop;
|
|
|
pipe (wakeupPipes);
|
|
|
- AddWatch (wakeupPipes [1], Condition.PollIn, ml => {
|
|
|
- read (wakeupPipes [1], ignore, readHandle);
|
|
|
+ AddWatch (wakeupPipes [0], Condition.PollIn, ml => {
|
|
|
+ read (wakeupPipes [0], ignore, (IntPtr)1);
|
|
|
return true;
|
|
|
});
|
|
|
}
|