From e3edb386b74e97e9d84914ea06ed5095b5b339bf Mon Sep 17 00:00:00 2001 From: Su Kang Yin Date: Thu, 25 Jun 2026 17:41:43 +0800 Subject: [PATCH] fix: hot-reload window.decorations without restart configure_window() (run on every config reload) re-applied opacity, blur, title, etc. but never decorations, so toggling window.decorations only took effect at window creation. Call set_decorations() there too so it reloads live like the other window settings. --- frontends/rioterm/src/router/window.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontends/rioterm/src/router/window.rs b/frontends/rioterm/src/router/window.rs index 5b299cf263..8067d41031 100644 --- a/frontends/rioterm/src/router/window.rs +++ b/frontends/rioterm/src/router/window.rs @@ -257,4 +257,10 @@ pub fn configure_window(winit_window: &Window, config: &Config) { } winit_window.set_blur(config.window.blur.into()); + + // Toggle decorations at runtime so `window.decorations` hot-reloads + // without a restart. Mirrors the build-time mapping: only `Disabled` + // turns the server-side decorations off. + winit_window + .set_decorations(!matches!(config.window.decorations, Decorations::Disabled)); }