Skip to content

Commit

Permalink
wl: Check dimensions in cog_wl_viewport_resize_to_largest_output
Browse files Browse the repository at this point in the history
... before call the cog_wl_platform_configure_geometry().

Unreviewed change.
  • Loading branch information
psaavedra committed Nov 24, 2023
1 parent 6a58209 commit 8028cf7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion platform/wayland/cog-viewport-wl.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,8 @@ cog_wl_viewport_resize_to_largest_output(CogWlViewport *viewport)
height = output->height;
}
}
cog_wl_viewport_configure_geometry(viewport, width, height);
if (width > 0 && height >0)
cog_wl_viewport_configure_geometry(viewport, width, height);
}

bool
Expand Down

0 comments on commit 8028cf7

Please sign in to comment.