diff options
Diffstat (limited to 'x11-wm/phoc/files/Revert-layer-shell-error-on-0-dimension-without-anchors.diff')
-rw-r--r-- | x11-wm/phoc/files/Revert-layer-shell-error-on-0-dimension-without-anchors.diff | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/x11-wm/phoc/files/Revert-layer-shell-error-on-0-dimension-without-anchors.diff b/x11-wm/phoc/files/Revert-layer-shell-error-on-0-dimension-without-anchors.diff deleted file mode 100644 index be1eeb571..000000000 --- a/x11-wm/phoc/files/Revert-layer-shell-error-on-0-dimension-without-anchors.diff +++ /dev/null @@ -1,42 +0,0 @@ -From: =?utf-8?q?Guido_G=C3=BCnther?= <agx@sigxcpu.org> -Date: Fri, 1 Jan 2021 13:58:55 +0100 -Subject: 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 | 20 -------------------- - 1 file changed, 20 deletions(-) - -diff --git a/types/wlr_layer_shell_v1.c b/types/wlr_layer_shell_v1.c -index bc68111..d83b22b 100644 ---- a/types/wlr_layer_shell_v1.c -+++ b/types/wlr_layer_shell_v1.c -@@ -307,26 +307,6 @@ static void layer_surface_role_commit(struct wlr_surface *wlr_surface) { - return; - } - -- const uint32_t horiz = ZWLR_LAYER_SURFACE_V1_ANCHOR_LEFT | -- ZWLR_LAYER_SURFACE_V1_ANCHOR_RIGHT; -- if (surface->client_pending.desired_width == 0 && -- (surface->client_pending.anchor & horiz) != horiz) { -- wl_resource_post_error(surface->resource, -- ZWLR_LAYER_SURFACE_V1_ERROR_INVALID_SIZE, -- "width 0 requested without setting left and right anchors"); -- return; -- } -- -- const uint32_t vert = ZWLR_LAYER_SURFACE_V1_ANCHOR_TOP | -- ZWLR_LAYER_SURFACE_V1_ANCHOR_BOTTOM; -- if (surface->client_pending.desired_height == 0 && -- (surface->client_pending.anchor & vert) != vert) { -- wl_resource_post_error(surface->resource, -- ZWLR_LAYER_SURFACE_V1_ERROR_INVALID_SIZE, -- "height 0 requested without setting top and bottom anchors"); -- return; -- } -- - if (surface->closed) { - // Ignore commits after the compositor has closed it - return; |