compositor: properly set infinite region on null input

fixes #11065
This commit is contained in:
Vaxry
2025-07-17 22:04:14 +02:00
parent 24296d5b81
commit c75a1b0cb4
2 changed files with 7 additions and 7 deletions

View File

@@ -219,7 +219,7 @@ CWLSurfaceResource::CWLSurfaceResource(SP<CWlSurface> resource_) : m_resource(re
m_pending.updated.bits.input = true;
if (!region) {
m_pending.input = CBox{{}, m_pending.bufferSize};
m_pending.input = CBox{{}, Vector2D{INT32_MAX - 1, INT32_MAX - 1}};
return;
}

View File

@@ -29,7 +29,7 @@ struct SSurfaceState {
CHLBufferReference buffer = {}; // The initial surface contents are void
CRegion damage, bufferDamage; // The initial value for pending damage is empty
CRegion opaque; // The initial value for an opaque region is empty
CRegion input = CBox{{}, {INT32_MAX, INT32_MAX}}; // The initial value for an input region is infinite
CRegion input = CBox{{}, {INT32_MAX - 1, INT32_MAX - 1}}; // The initial value for an input region is infinite
wl_output_transform transform = WL_OUTPUT_TRANSFORM_NORMAL; // A newly created surface has its buffer transformation set to normal
int scale = 1; // A newly created surface has its buffer scale set to 1