gui-apps/somebar: patch for wlroots 0.17

This commit is contained in:
odrling 2023-11-28 01:27:14 +01:00
parent c77ecc8aec
commit 665575ad3e
No known key found for this signature in database
GPG key ID: E24CA7508C27AF5B
2 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,25 @@
From c5ae157fe9e83d388bd7429fd6a02dd45077bc75 Mon Sep 17 00:00:00 2001
From: odrling <florianbadie@odrling.xyz>
Date: Thu, 19 Oct 2023 01:12:19 +0200
Subject: [PATCH] fix wlr-layer-shell version check
---
src/main.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main.cpp b/src/main.cpp
index 6274959..a7ef4cb 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -403,7 +403,7 @@ void onGlobalAdd(void*, wl_registry* registry, uint32_t name, const char* interf
auto reg = HandleGlobalHelper { registry, name, interface };
if (reg.handle(compositor, wl_compositor_interface, 4)) return;
if (reg.handle(shm, wl_shm_interface, 1)) return;
- if (reg.handle(wlrLayerShell, zwlr_layer_shell_v1_interface, 4)) return;
+ if (reg.handle(wlrLayerShell, zwlr_layer_shell_v1_interface, 3)) return;
if (reg.handle(xdgOutputManager, zxdg_output_manager_v1_interface, 3)) return;
if (reg.handle(xdgWmBase, xdg_wm_base_interface, 2)) {
xdg_wm_base_add_listener(xdgWmBase, &xdgWmBaseListener, nullptr);
--
2.43.0

View file

@ -28,6 +28,7 @@ PATCHES=(
"${FILESDIR}/colorless-status.patch"
"${FILESDIR}/hide-vacant-tags.patch"
"${FILESDIR}/set-bar-color.patch"
"${FILESDIR}/fix-wlr-layer-shell-version-check.patch"
)
src_prepare() {