Isolate rendering state per window presentation
Verify Tessera GUI / verify (push) Failing after 7m26s

This commit is contained in:
2026-10-21 17:42:11 +08:00
parent 96319b13a3
commit f8173168fd
10 changed files with 285 additions and 88 deletions
+5
View File
@@ -148,6 +148,7 @@ impl TesseraApp {
.focus
.filter(|_| frame.fault.is_none())
.map(|mount| crate::events::Input {
window: crate::window::MAIN_WINDOW,
session: frame.session,
layout_version: frame.layout_version,
mount,
@@ -275,6 +276,7 @@ impl TesseraApp {
let point = Point::new(self.pointer.x, self.pointer.y - offset);
let mount = frame.hit_test(point)?;
Some(crate::events::Input {
window: crate::window::MAIN_WINDOW,
session: frame.session,
layout_version: frame.layout_version,
mount: mount.id,
@@ -299,6 +301,7 @@ impl TesseraApp {
(active + 1) % frame.tabs.len()
};
Some(crate::events::Input {
window: crate::window::MAIN_WINDOW,
session: frame.session,
layout_version: frame.layout_version,
mount: frame.tabs[index].id,
@@ -331,6 +334,7 @@ impl TesseraApp {
let width = window.inner_size().width as f32 / window.scale_factor() as f32;
let (id, close) = crate::tabs::hit(&frame.tabs, width, self.pointer)?;
Some(crate::events::Input {
window: crate::window::MAIN_WINDOW,
session: frame.session,
layout_version: frame.layout_version,
mount: id,
@@ -378,6 +382,7 @@ impl TesseraApp {
current.map(|i| (i + 1) % targets.len()).unwrap_or(0)
};
Some(crate::events::Input {
window: crate::window::MAIN_WINDOW,
session: frame.session,
layout_version: frame.layout_version,
mount: targets[index].id,