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); d (state);
return false; return false;
}); });
mainLoop.Driver.Wakeup (); //mainLoop.Driver.Wakeup ();
} }
public override void Send (SendOrPostCallback d, object state) public override void Send (SendOrPostCallback d, object state)

View File

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

View File

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