diff options
| author | Aurelle <gh@aurelle.dev> | 2025-11-09 16:59:14 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-09 15:59:14 +0000 |
| commit | 0bd11d5eb941b8038f0723135768d84aa5512b4a (patch) | |
| tree | 62a5e517657cd8b18fd3481f6f0f72ff993e41ca /src/protocols/LayerShell.cpp | |
| parent | 06b37c390715e05f852076a8d1160e27c5cd291c (diff) | |
protocols/layershell: do not raise protocol error if layer surface is not anchored (#12241)
Diffstat (limited to 'src/protocols/LayerShell.cpp')
| -rw-r--r-- | src/protocols/LayerShell.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/LayerShell.cpp b/src/protocols/LayerShell.cpp index 15db1445..2ed4bfb1 100644 --- a/src/protocols/LayerShell.cpp +++ b/src/protocols/LayerShell.cpp @@ -159,7 +159,7 @@ CLayerShellResource::CLayerShellResource(SP<CZwlrLayerSurfaceV1> resource_, SP<C return; } - if (!m_pending.anchor || !(m_pending.anchor & anchor)) { + if (anchor && (!m_pending.anchor || !(m_pending.anchor & anchor))) { r->error(ZWLR_LAYER_SURFACE_V1_ERROR_INVALID_EXCLUSIVE_EDGE, "Exclusive edge doesn't align with anchor"); return; } |
