mirror of
https://github.com/ublue-os/bazzite.git
synced 2024-12-29 03:20:57 +00:00
45 lines
1.5 KiB
Diff
45 lines
1.5 KiB
Diff
From 05cd68c9eee28c2223cc192b9744cff493f940cc Mon Sep 17 00:00:00 2001
|
|
From: Aleksei Bavshin <alebastr89@gmail.com>
|
|
Date: Sat, 25 Jun 2022 21:22:08 -0700
|
|
Subject: [PATCH] Revert "layer-shell: error on 0 dimension without anchors"
|
|
|
|
This reverts commit 8dec751a6d84335fb04288b8efab6dd5c90288d3.
|
|
---
|
|
types/wlr_layer_shell_v1.c | 20 --------------------
|
|
1 file changed, 20 deletions(-)
|
|
|
|
diff --git a/wlr_layer_shell_v1.c b/wlr_layer_shell_v1.c
|
|
index a59f110..75a1931 100644
|
|
--- a/types/wlr_layer_shell_v1.c
|
|
+++ b/types/wlr_layer_shell_v1.c
|
|
@@ -335,26 +335,6 @@ static void layer_surface_role_client_commit(struct wlr_surface *wlr_surface) {
|
|
"layer_surface has never been configured");
|
|
return;
|
|
}
|
|
-
|
|
- const uint32_t horiz = ZWLR_LAYER_SURFACE_V1_ANCHOR_LEFT |
|
|
- ZWLR_LAYER_SURFACE_V1_ANCHOR_RIGHT;
|
|
- if (surface->pending.desired_width == 0 &&
|
|
- (surface->pending.anchor & horiz) != horiz) {
|
|
- wlr_surface_reject_pending(wlr_surface, 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->pending.desired_height == 0 &&
|
|
- (surface->pending.anchor & vert) != vert) {
|
|
- wlr_surface_reject_pending(wlr_surface, surface->resource,
|
|
- ZWLR_LAYER_SURFACE_V1_ERROR_INVALID_SIZE,
|
|
- "height 0 requested without setting top and bottom anchors");
|
|
- return;
|
|
- }
|
|
}
|
|
|
|
static void layer_surface_role_commit(struct wlr_surface *wlr_surface) {
|
|
--
|
|
2.41.0
|
|
|