Recover Rime faults, persist window modes and fix GPU allocation

This commit is contained in:
aria committed 2026-10-28 02:32:19 +09:00
1 parent 8e9a5838ab
commit 6f34fd080f
27 files changed
+1260 -34

No files matched your search

+6
View File
@@ -46,6 +46,8 @@ pub enum Command {
/// Show the active window.
#[command(alias = "get-focused-window")]
FocusedWindow,
/// Activate a mapped window by its session-local ID.
FocusWindow { window: u64 },
/// List windows.
#[command(alias = "get-windows")]
Windows,
@@ -58,6 +60,8 @@ pub enum Command {
/// List connected outputs and their applied configuration.
#[command(alias = "get-outputs")]
Outputs,
/// Focus an enabled monitor by its connector name.
FocusOutput { name: String },
/// List configured keybindings.
#[command(alias = "get-keybindings")]
Keybindings,
@@ -262,6 +266,8 @@ impl Command {
Self::IdleInhibition => ("get-idle-inhibition", json!({})),
Self::Workspaces => ("get-workspaces", json!({})),
Self::Outputs => ("outputs", json!({})),
Self::FocusWindow { window } => ("focus-window", json!({"window":window})),
Self::FocusOutput { name } => ("focus-output", json!({"name":name})),
Self::Keybindings => ("get-keybindings", json!({})),
Self::SessionState => ("get-session-state", json!({})),
Self::ToggleFloating => ("toggle-floating", json!({})),