From a26962052fff5c437f81675e57f80a3eedfd9a3f Mon Sep 17 00:00:00 2001 From: En-En <39373446+En-En-Code@users.noreply.github.com> Date: Thu, 25 Dec 2025 12:46:03 +0000 Subject: [PATCH] fix(decor): respect `!self.should_draw` in `set_title` `set_title` would call `update_buffer` at the end of the function, even if the bar was explicitly not supposed to be drawn (most commonly because the window had been fullscreened). Since `set_title` is called outside of the decorations file, a check here made the most sense. Resolves #310. --- src/server/decoration.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server/decoration.rs b/src/server/decoration.rs index 22eb626..4068ec7 100644 --- a/src/server/decoration.rs +++ b/src/server/decoration.rs @@ -235,6 +235,9 @@ impl DecorationsDataSatellite { pub fn set_title(&mut self, world: &World, title: &str) { self.title = Some(title.to_string()); + if !self.should_draw { + return; + } // Don't draw title if there's not enough space let title_pixmap = title_pixmap(