Deferred viewport does not redraw when the root viewport has focus (Windows)
Deferred viewport does not redraw when the root viewport has focus (Windows)
Environment
- egui version:
main(also reproduced with previous versions) - OS: Windows 10
Problem
A deferred viewport may stop repainting after the root viewport receives focus, for example after clicking the root window.
request_repaint_after() often allows the deferred viewport to continue repainting, but it is not reliable in all cases.
However, when using request_repaint_of() or request_repaint(), the deferred viewport does not repaint unless that deferred viewport itself has focus.
In this case, “does not repaint” also means that UI interaction in the deferred viewport stops updating. For example, hover and other interactive UI state are no longer refreshed.
I have confirmed this on Windows, but I have not yet tested whether the same issue occurs on other operating systems.
I am investigating a possible fix and plan to submit a pull request with a proposed solution. I am not yet certain whether that approach is the correct general fix.
- Related #8351
Source: emilk/egui