Call CefDoMessageLoopWork() even more aggressively

Calling this function from OnInternalIdle() is not always enough, so
call it before processing each and every event to ensure that CEF can
really do whatever it needs to be doing internally.

This doesn't seem to noticeably slow down the program and solves weird
problems, like embedded text boxes (e.g. search zones on the web sites)
not getting focus on click.
This commit is contained in:
Vadim Zeitlin 2023-12-22 02:20:49 +01:00
parent ed128bbe15
commit 4f1a249b76
2 changed files with 21 additions and 8 deletions

View file

@ -132,8 +132,6 @@ public:
virtual void GTKHandleRealized() override;
#endif
virtual void OnInternalIdle() override;
protected:
virtual void DoSetPage(const wxString& html, const wxString& baseUrl) override;