diff --git a/Terminal.Gui/Core.cs b/Terminal.Gui/Core.cs index 2cbdd80a5..9f0f397c4 100644 --- a/Terminal.Gui/Core.cs +++ b/Terminal.Gui/Core.cs @@ -1717,7 +1717,7 @@ namespace Terminal.Gui { public override void Post (SendOrPostCallback d, object state) { - mainLoop.AddIdle (() => { + mainLoop.AddIdle (() => { d (state); return false; }); diff --git a/Terminal.Gui/MonoCurses/mainloop.cs b/Terminal.Gui/MonoCurses/mainloop.cs index 98ba8aca1..280c4dfee 100644 --- a/Terminal.Gui/MonoCurses/mainloop.cs +++ b/Terminal.Gui/MonoCurses/mainloop.cs @@ -354,8 +354,10 @@ namespace Mono.Terminal { /// public Func AddIdle (Func idleHandler) { - lock (idleHandlers) + lock (idleHandlers) { idleHandlers.Add (idleHandler); + driver.Wakeup (); + } return idleHandler; }