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
  • Loading branch information
AlanGriffiths committed Oct 26, 2024
1 parent 9812b80 commit f3a1953
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 f3a1953

Please sign in to comment.