From f3a19538fd679769e59379c9e72bd31c9159e1be Mon Sep 17 00:00:00 2001 From: Alan Griffiths Date: Sat, 26 Oct 2024 17:21:23 +0200 Subject: [PATCH] A zero size is not a real size. (Wayland treats it as a special value) --- src/server/shell/decoration/basic_decoration.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/shell/decoration/basic_decoration.cpp b/src/server/shell/decoration/basic_decoration.cpp index 6771f23450a..a907e63feea 100644 --- a/src/server/shell/decoration/basic_decoration.cpp +++ b/src/server/shell/decoration/basic_decoration.cpp @@ -324,8 +324,8 @@ void msd::BasicDecoration::update( if (window_updated({ &WindowState::window_size})) { - spec.width = window_state->window_size().width; - spec.height = window_state->window_size().height; + if (window_state->window_size().width.as_value()) spec.width = window_state->window_size().width; + if (window_state->window_size().height.as_value()) spec.height = window_state->window_size().height; } if (input_updated({