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

37 lines
1.2 KiB
Diff
Raw Permalink Normal View History

2025-04-26 20:45:23 +02:00
From dddfcf3c8cd658d43df83dd9e3cd4f502c611c4f Mon Sep 17 00:00:00 2001
Message-ID: <dddfcf3c8cd658d43df83dd9e3cd4f502c611c4f.1705668498.git.agx@sigxcpu.org>
2024-05-21 15:21:42 +02:00
From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
2025-04-26 20:45:23 +02:00
Date: Fri, 19 Jan 2024 13:44:28 +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
2025-04-26 20:45:23 +02:00
index 3bb3b91..28cf5f3 100644
2024-05-21 15:21:42 +02:00
--- a/types/wlr_layer_shell_v1.c
+++ b/types/wlr_layer_shell_v1.c
2025-04-26 20:45:23 +02:00
@@ -331,6 +331,7 @@ static void layer_surface_role_client_commit(struct wlr_surface *wlr_surface) {
2024-05-21 15:21:42 +02:00
return;
}
+#if 0
const uint32_t horiz = ZWLR_LAYER_SURFACE_V1_ANCHOR_LEFT |
ZWLR_LAYER_SURFACE_V1_ANCHOR_RIGHT;
if (surface->pending.desired_width == 0 &&
2025-04-26 20:45:23 +02:00
@@ -350,6 +351,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
2025-04-26 20:45:23 +02:00
}
2024-05-21 15:21:42 +02:00
2025-04-26 20:45:23 +02:00
static void layer_surface_role_commit(struct wlr_surface *wlr_surface) {
2024-05-21 15:21:42 +02:00
--
2025-04-26 20:45:23 +02:00
2.43.0
2024-05-21 15:21:42 +02:00