Always run the event loop, fixing processing issue

Also remove any special `effEditIdle` handling.

Apparently plugins rely on the message loop for their internal tasks,
even for things that have nothing to do with GUIs, such as deferring
initialization.
This commit is contained in:
Robbert van der Helm
2020-04-27 18:45:20 +02:00
parent e69d08c503
commit 4b84f663ab
4 changed files with 29 additions and 21 deletions
+2 -2
View File
@@ -88,14 +88,14 @@ class Editor {
/**
* Send a single `effEditIdle` event to the plugin to allow it to update its
* GUI state. This is called periodically from a timer while the GUI is
* being blocked.
* being blocked, and also called explicitly by the host on a timer.
*/
void send_idle_event();
/**
* Pump messages from the editor GUI's event loop until all events are
* process. Must be run from the same thread the GUI was created in because
* of Win32 limitations. I guess that's what `effEditIdle` is for.
* of Win32 limitations.
*/
void handle_events();