Fennec OS 0.3.2: one app at a time, Raspberry Pi shell packages

- sf-core: only one app runs. Home, another app or a cast closes the app
  on screen (after the switch animation) instead of freezing it in the
  background. A frozen app that held a sound stream stalled PipeWire, so
  the next app could not play at all ("Failed to connect stream: No such
  entity" in Netflex after YouTube was sent home mid-video). The
  background limit and the low-memory watcher go with the freezing.
- Raspberry Pi: image/pi (installer on Raspberry Pi OS), aarch64 shell
  packages (sf-shell-<v>-aarch64, arch in pkg.toml, sf-update installs only
  its own architecture), CI builds the aarch64 shell too.
- sf-compositor: volume OSD, screencopy for remote view, blank cursor.
- SDK v0.1.2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Tamas Csikel
2026-11-02 19:38:09 +01:00
parent 54cdaf5e35
commit 9c710bedb9
33 changed files with 1329 additions and 319 deletions

View File

@@ -71,22 +71,24 @@ pub fn init(event_loop: &mut EventLoop<'static, App>, state: &mut State) -> Resu
fn render(app: &mut App) {
let Backend::Winit(w) = &mut app.backend else { return };
let age = w.backend.buffer_age().unwrap_or(0);
let damage = match w.backend.bind() {
let (damage, elements) = match w.backend.bind() {
Ok((renderer, mut fb)) => {
let elements = app.state.elements(renderer);
match w.damage.render_output(renderer, &mut fb, age, &elements, [0.0, 0.0, 0.0, 1.0]) {
let damage = match w.damage.render_output(renderer, &mut fb, age, &elements, [0.0, 0.0, 0.0, 1.0]) {
Ok(r) => r.damage.cloned(),
Err(e) => {
tracing::warn!("render: {e:?}");
None
}
}
};
(damage, Some(elements))
}
Err(e) => {
tracing::warn!("bind: {e:?}");
None
(None, None)
}
};
let damaged = damage.is_some();
if let Some(damage) = damage {
let feedback = app.state.presentation_feedback();
match w.backend.submit(Some(&damage)) {
@@ -99,6 +101,10 @@ fn render(app: &mut App) {
Err(e) => tracing::warn!("submit: {e:?}"),
}
}
// After the swap: copying binds other targets.
if let Some(elements) = elements.filter(|_| !app.state.screencopies.is_empty()) {
crate::screencopy::fulfil(&mut app.state, w.backend.renderer(), &elements, damaged);
}
app.state.send_frames();
w.backend.window().request_redraw();
}