aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-08-01 11:45:55 +0200
committerVaxry <[email protected]>2024-08-01 11:46:04 +0200
commit5edfa627b4efc5d2125f4f0f97dad6bac6c3a407 (patch)
tree376cd1b9867c0bd0776005d3f6c9b02552d8040b
parent95959789b7667172b2b2f37f78fe96ac196e9cd3 (diff)
downloadHyprland-5edfa627b4efc5d2125f4f0f97dad6bac6c3a407.tar.gz
Hyprland-5edfa627b4efc5d2125f4f0f97dad6bac6c3a407.zip
layershell: don't throw misaligned error on exclusive edge 0
ref #7108
-rw-r--r--src/protocols/LayerShell.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/LayerShell.cpp b/src/protocols/LayerShell.cpp
index 0ed1b219..295ef4a9 100644
--- a/src/protocols/LayerShell.cpp
+++ b/src/protocols/LayerShell.cpp
@@ -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;
}