No needed call the Wakeup now.

This commit is contained in:
BDisp
2020-05-25 18:50:15 +01:00
parent 997a7c31b5
commit a7384fbf03
3 changed files with 6 additions and 6 deletions

View File

@@ -2095,7 +2095,7 @@ namespace Terminal.Gui {
d (state);
return false;
});
mainLoop.Driver.Wakeup ();
//mainLoop.Driver.Wakeup ();
}
public override void Send (SendOrPostCallback d, object state)

View File

@@ -244,7 +244,7 @@ namespace Terminal.Gui {
break;
if (IsButtonPressed && LastMouseButtonPressed != null && (mouseFlag & MouseFlags.ReportMousePosition) == 0) {
mouseHandler (me);
mainLoop.Driver.Wakeup ();
//mainLoop.Driver.Wakeup ();
}
}
});

View File

@@ -544,9 +544,9 @@ namespace Terminal.Gui {
void IMainLoopDriver.Wakeup ()
{
//tokenSource.Cancel ();
eventReady.Reset ();
eventReady.Set ();
tokenSource.Cancel ();
//eventReady.Reset ();
//eventReady.Set ();
}
bool IMainLoopDriver.EventsPending (bool wait)
@@ -790,7 +790,7 @@ namespace Terminal.Gui {
break;
if (IsButtonPressed && (mouseFlag & MouseFlags.ReportMousePosition) == 0) {
mouseHandler (me);
mainLoop.Driver.Wakeup ();
//mainLoop.Driver.Wakeup ();
}
}
});