diff --git a/Terminal.Gui/ConsoleDrivers/CursesDriver/CursesDriver.cs b/Terminal.Gui/ConsoleDrivers/CursesDriver/CursesDriver.cs index b5fd61084c..f7563327ca 100644 --- a/Terminal.Gui/ConsoleDrivers/CursesDriver/CursesDriver.cs +++ b/Terminal.Gui/ConsoleDrivers/CursesDriver/CursesDriver.cs @@ -627,7 +627,7 @@ public override void PrepareToRun (MainLoop mainLoop, Action keyHandle return true; }); - _mainLoop.WinChanged += ProcessInput; + _mainLoop.WinChanged = ProcessInput; } public override void Init (Action terminalResized) diff --git a/Terminal.Gui/ConsoleDrivers/WindowsDriver.cs b/Terminal.Gui/ConsoleDrivers/WindowsDriver.cs index 8918875639..18e6492b9f 100644 --- a/Terminal.Gui/ConsoleDrivers/WindowsDriver.cs +++ b/Terminal.Gui/ConsoleDrivers/WindowsDriver.cs @@ -861,9 +861,9 @@ public override void PrepareToRun (MainLoop mainLoop, Action keyHandle _mouseHandler = mouseHandler; _mainLoop = mainLoop.MainLoopDriver as WindowsMainLoop; - _mainLoop.ProcessInput += ProcessInput; + _mainLoop.ProcessInput = ProcessInput; #if HACK_CHECK_WINCHANGED - _mainLoop.WinChanged += ChangeWin; + _mainLoop.WinChanged = ChangeWin; #endif }