From f4fb9995cd8f15d88a35a7ec7072df9f0c923928 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Thu, 26 Dec 2024 10:35:56 +0800 Subject: [PATCH] debug resumption crash --- src/output/output.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/output/output.cpp b/src/output/output.cpp index 253ae0948..49e954ba4 100644 --- a/src/output/output.cpp +++ b/src/output/output.cpp @@ -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))