orbital: Fix EventLoop::run_app_on_demand

Previously event_loop.exit() would persist and cause all future
run_app_on_demand() calls to immediately exit.
This commit is contained in:
bjorn3
2026-08-07 21:47:13 +02:00
committed by Jeremy Soller
parent 42366231b0
commit 4e6525b4b7
2 changed files with 2 additions and 0 deletions

View File

@@ -526,6 +526,7 @@ impl EventLoop {
&mut self, &mut self,
mut app: A, mut app: A,
) -> Result<(), EventLoopError> { ) -> Result<(), EventLoopError> {
self.window_target.exit.set(false);
loop { loop {
match self.pump_app_events(None, &mut app) { match self.pump_app_events(None, &mut app) {
PumpStatus::Exit(0) => { PumpStatus::Exit(0) => {

View File

@@ -111,3 +111,4 @@ changelog entry.
- On macOS, fix IME being locked on (regardless of requests to disable) after being enabled once. - On macOS, fix IME being locked on (regardless of requests to disable) after being enabled once.
- On macOS, fix a panic and incorrect cursor position in Ime::Preedit when the preedit string contains special characters (ie. emojis) caused by incorrect UTF-16 to UTF-8 offset conversion. - On macOS, fix a panic and incorrect cursor position in Ime::Preedit when the preedit string contains special characters (ie. emojis) caused by incorrect UTF-16 to UTF-8 offset conversion.
- On Wayland, fix a protocol error when setting a custom cursor on compositors with `wl_surface` version below 3. - On Wayland, fix a protocol error when setting a custom cursor on compositors with `wl_surface` version below 3.
- On Redox, fix `run_app_on_demand` exiting immediately after a previous `run_app_on_demand` called `exit`.