Skip to content

Commit

Permalink
debug resumption crash
Browse files Browse the repository at this point in the history
  • Loading branch information
lilydjwg committed Jan 2, 2025
1 parent 44ca605 commit f4fb999
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/output/output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@ wf::geometry_t wf::output_t::get_relative_geometry() const
wf::geometry_t wf::output_t::get_layout_geometry() const
{
wlr_box box;
if (handle->width == 0)
{
LOGE("empty wlr_output handle");
return {0, 0, 1920, 1080};
}
wlr_output_layout_get_box(
wf::get_core().output_layout->get_handle(), handle, &box);
if (wlr_box_empty(&box))
Expand Down

0 comments on commit f4fb999

Please sign in to comment.