mirror of
https://github.com/hyprwm/Hyprland
synced 2025-12-20 05:10:20 +01:00
protocols/layershell: do not raise protocol error if layer surface is not anchored (#12241)
This commit is contained in:
parent
a85c1f16bf
commit
b45f304c15
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue