Skip to content

Commit b45f304

Browse files
aurellebvaxerski
authored andcommitted
protocols/layershell: do not raise protocol error if layer surface is not anchored (#12241)
1 parent a85c1f1 commit b45f304

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/protocols/LayerShell.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ CLayerShellResource::CLayerShellResource(SP<CZwlrLayerSurfaceV1> resource_, SP<C
159159
return;
160160
}
161161

162-
if (!m_pending.anchor || !(m_pending.anchor & anchor)) {
162+
if (anchor && (!m_pending.anchor || !(m_pending.anchor & anchor))) {
163163
r->error(ZWLR_LAYER_SURFACE_V1_ERROR_INVALID_EXCLUSIVE_EDGE, "Exclusive edge doesn't align with anchor");
164164
return;
165165
}

0 commit comments

Comments
 (0)