Handle CEF message loop from idle events
Handlign CEF messages on idle seems to work much better on macOS
This commit is contained in:
parent
dadade9d55
commit
f6269ca8a6
2 changed files with 9 additions and 16 deletions
|
|
@ -141,10 +141,8 @@ private:
|
|||
ClientHandler* m_clientHandler;
|
||||
|
||||
static int ms_activeWebViewCount;
|
||||
// A timer to run CEF message loop.
|
||||
static wxTimer* ms_workTimer;
|
||||
|
||||
static void OnWorkTimer(wxTimerEvent& evt);
|
||||
|
||||
static void OnIdle(wxIdleEvent& evt);
|
||||
|
||||
wxDECLARE_DYNAMIC_CLASS(wxWebViewChromium);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue