mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 12:50:04 -04:00
Add `Context::run_logic`, for ticking app logic without running a pass, and use it in the native eframe backends when a viewport is minimized or occluded (and has no visible descendant viewport). Since no pass runs, all ui state is left untouched: nothing to special-case inside egui, and the app finds everything where it left it once the window is visible again. `App::logic` is now always called outside of the egui pass. Any viewport commands it sends (e.g. `ViewportCommand::Focus`) come out of `LogicOutput` when there is no pass to carry them. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>