mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 20:25:59 +01:00
parent
95959789b7
commit
5edfa627b4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue