Compare commits

..
2 Commits
Author SHA1 Message Date
Ansho Rei 07214f1827 chore: bump the version to 0.9.1 for the fullscreen dev script steps 2026-11-06 20:28:50 +01:00
Ansho Rei 885ca01ff7 chore: drive and log the fullscreen toggle from the dev script
Adds a fullscreen step that runs the toggle action and a key:f11 step
that sends F11 through the Slint window, plus a debug log of the state
each toggle starts from. A scripted run could not reproduce F11 failing
to re-enter fullscreen on COSMIC, so the log is there for a manual run.
2026-11-06 20:27:29 +01:00
6 changed files with 18 additions and 2 deletions
+6
View File
@@ -2,6 +2,12 @@
One section per version, newest first.
## v0.9.1 (2026-11-06)
### Features
- The dev script (REMUS_DEV_SCRIPT) has a fullscreen step that toggles fullscreen and a key:f11 step that presses F11. With RUST_LOG=remus=debug, each toggle logs whether the window was fullscreen and its size.
## v0.9.0 (2026-11-05)
### Features
Generated
+1 -1
View File
@@ -4385,7 +4385,7 @@ checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
[[package]]
name = "remus"
version = "0.9.0"
version = "0.9.1"
dependencies = [
"anyhow",
"directories",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "remus"
version = "0.9.0"
version = "0.9.1"
edition = "2024"
license = "MIT"
@@ -20,6 +20,7 @@
</supports>
<content_rating type="oars-1.1"/>
<releases>
<release version="0.9.1" date="2026-11-06"/>
<release version="0.9.0" date="2026-11-05"/>
<release version="0.8.7" date="2026-11-04"/>
<release version="0.8.6" date="2026-11-04"/>
+1
View File
@@ -786,6 +786,7 @@ impl App {
}
Action::ToggleFullscreen => {
let w = self.ui.window();
log::debug!("F11: fullscreen {} size {:?}", w.is_fullscreen(), w.size());
w.set_fullscreen(!w.is_fullscreen());
return;
}
+8
View File
@@ -56,6 +56,13 @@ fn step(ui: slint::Weak<AppWindow>, steps: Vec<String>, i: usize) {
Err(e) => log::error!("snapshot failed: {e}"),
}
}
Some(("key", "f11")) => {
use slint::platform::{Key, WindowEvent};
let text: slint::SharedString = Key::F11.into();
win.window()
.dispatch_event(WindowEvent::KeyPressed { text: text.clone() });
win.window().dispatch_event(WindowEvent::KeyReleased { text });
}
Some(("prompts", kind)) => {
use crate::prompts::Family;
let family = match kind {
@@ -98,6 +105,7 @@ fn step(ui: slint::Weak<AppWindow>, steps: Vec<String>, i: usize) {
"cycle-shuffle" => Action::CycleShuffle,
"shuffle" => Action::Shuffle,
"hold-activate" => Action::HoldActivate,
"fullscreen" => Action::ToggleFullscreen,
other => {
log::warn!("unknown dev script step {other}");
Action::None