Files
gjdwebserver-overlay/gui-libs/wlroots/files/0001-Revert-layer-shell-error-on-0-dimension-without-anch.patch
T

36 lines
1.3 KiB
Diff
Raw Normal View History

2026-10-26 18:55:23 +01:00
From 91b770c013e89e55636594051be03f6825ff04cc Mon Sep 17 00:00:00 2001
Message-ID: <91b770c013e89e55636594051be03f6825ff04cc.1731366381.git.agx@sigxcpu.org>
2024-05-21 15:21:42 +02:00
From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
2026-10-26 18:55:23 +01:00
Date: Fri, 1 Jan 2021 13:58:55 +0100
2024-05-21 15:21:42 +02:00
Subject: [PATCH] Revert "layer-shell: error on 0 dimension without anchors"
This reverts commit 8dec751a6d84335fb04288b8efab6dd5c90288d3.
Revert this until phosh has a fixed release.
---
types/wlr_layer_shell_v1.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/types/wlr_layer_shell_v1.c b/types/wlr_layer_shell_v1.c
2026-10-26 18:55:23 +01:00
index d4893871..bcf82a43 100644
2024-05-21 15:21:42 +02:00
--- a/types/wlr_layer_shell_v1.c
+++ b/types/wlr_layer_shell_v1.c
2026-10-26 18:55:23 +01:00
@@ -366,6 +366,7 @@ static void layer_surface_role_client_commit(struct wlr_surface *wlr_surface) {
2024-05-21 15:21:42 +02:00
return;
}
+#if 0
2026-10-26 18:55:23 +01:00
const uint32_t vert = ZWLR_LAYER_SURFACE_V1_ANCHOR_TOP |
ZWLR_LAYER_SURFACE_V1_ANCHOR_BOTTOM;
if (surface->pending.desired_height == 0 && (anchor & vert) != vert) {
@@ -374,6 +375,7 @@ static void layer_surface_role_client_commit(struct wlr_surface *wlr_surface) {
2024-05-21 15:21:42 +02:00
"height 0 requested without setting top and bottom anchors");
return;
}
+#endif
2026-10-26 18:55:23 +01:00
if ((anchor & surface->pending.exclusive_edge) != surface->pending.exclusive_edge) {
wlr_surface_reject_pending(wlr_surface, surface->resource,
2024-05-21 15:21:42 +02:00
--
2026-10-26 18:55:23 +01:00
2.45.2
2024-05-21 15:21:42 +02:00