layershell: don't throw misaligned error on exclusive edge 0

ref #7108
This commit is contained in:
Vaxry 2024-08-01 11:45:55 +02:00
parent 95959789b7
commit 5edfa627b4

View file

@ -159,7 +159,7 @@ CLayerShellResource::CLayerShellResource(SP<CZwlrLayerSurfaceV1> resource_, SP<C
return;
}
if (!pending.anchor || !(pending.anchor & anchor)) {
if (anchor && (!pending.anchor || !(pending.anchor & anchor))) {
r->error(ZWLR_LAYER_SURFACE_V1_ERROR_INVALID_EXCLUSIVE_EDGE, "Exclusive edge doesn't align with anchor");
return;
}