From 91b770c013e89e55636594051be03f6825ff04cc Mon Sep 17 00:00:00 2001 Message-ID: <91b770c013e89e55636594051be03f6825ff04cc.1731366381.git.agx@sigxcpu.org> From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Fri, 1 Jan 2021 13:58:55 +0100 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 index d4893871..bcf82a43 100644 --- a/types/wlr_layer_shell_v1.c +++ b/types/wlr_layer_shell_v1.c @@ -366,6 +366,7 @@ static void layer_surface_role_client_commit(struct wlr_surface *wlr_surface) { return; } +#if 0 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) { "height 0 requested without setting top and bottom anchors"); return; } +#endif if ((anchor & surface->pending.exclusive_edge) != surface->pending.exclusive_edge) { wlr_surface_reject_pending(wlr_surface, surface->resource, -- 2.45.2