mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-02-15 04:28:05 -05:00
33 lines
1.4 KiB
Diff
33 lines
1.4 KiB
Diff
From 79f8e916ab684c748858fd0f1a8fea05c5aac963 Mon Sep 17 00:00:00 2001
|
|
From: Xtr126 <80520774+Xtr126@users.noreply.github.com>
|
|
Date: Sat, 4 May 2024 10:12:04 +0530
|
|
Subject: [PATCH 1/1] add environment variable for disabling title bar
|
|
|
|
---
|
|
backend/wayland/backend.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/backend/wayland/backend.c b/backend/wayland/backend.c
|
|
index fd71a124..95ecd0c4 100644
|
|
--- a/backend/wayland/backend.c
|
|
+++ b/backend/wayland/backend.c
|
|
@@ -31,6 +31,7 @@
|
|
#include "relative-pointer-unstable-v1-client-protocol.h"
|
|
#include "viewporter-client-protocol.h"
|
|
#include "pointer-constraints-unstable-v1-client-protocol.h"
|
|
+#include "util/env.h"
|
|
|
|
struct wlr_wl_linux_dmabuf_feedback_v1 {
|
|
struct wlr_wl_backend *backend;
|
|
@@ -369,7 +370,7 @@ static void registry_global(void *data, struct wl_registry *registry,
|
|
&xdg_wm_base_interface, 1);
|
|
xdg_wm_base_add_listener(wl->xdg_wm_base, &xdg_wm_base_listener, NULL);
|
|
} else if (strcmp(iface, zxdg_decoration_manager_v1_interface.name) == 0) {
|
|
- wl->zxdg_decoration_manager_v1 = wl_registry_bind(registry, name,
|
|
+ if (!env_parse_bool("WLR_NO_DECORATION")) wl->zxdg_decoration_manager_v1 = wl_registry_bind(registry, name,
|
|
&zxdg_decoration_manager_v1_interface, 1);
|
|
} else if (strcmp(iface, zwp_pointer_gestures_v1_interface.name) == 0) {
|
|
wl->zwp_pointer_gestures_v1 = wl_registry_bind(registry, name,
|
|
--
|
|
2.44.0
|
|
|