mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-31 04:01:56 -07:00
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user