Skip to content

Commit

Permalink
A zero size is not a real size. (Wayland treats it as a special value) (
Browse files Browse the repository at this point in the history
#3649)

Fixes: #3648
  • Loading branch information
mattkae authored Oct 28, 2024
2 parents 9812b80 + f3a1953 commit 18698c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/shell/decoration/basic_decoration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 18698c2

Please sign in to comment.