riverctl patch: actually make borderpx non const

This commit is contained in:
Zuki Air 2025-07-29 10:45:43 +01:00
parent 749f80e565
commit fc5925e7b6

View File

@ -1,4 +1,4 @@
From ef417a18fea99dedc9dfe33f86015d6881c0751d Mon Sep 17 00:00:00 2001
From 2a7a35b64d091bb85cff4180d48a510cf5a28522 Mon Sep 17 00:00:00 2001
From: Zuki Air <zukirust@gmail.com>
Date: Sun, 27 Jul 2025 11:30:32 +0100
Subject: [PATCH] river-ctl patch
@ -9,12 +9,12 @@ improve uint error handling
---
.gitignore | 1 +
Makefile | 22 +-
config.def.h | 34 +-
config.def.h | 36 +-
dwl.c | 20 +-
dwlctl.c | 132 +++++
protocols/river-control-unstable-v1.xml | 85 +++
river-control.h | 732 ++++++++++++++++++++++++
7 files changed, 1011 insertions(+), 15 deletions(-)
7 files changed, 1012 insertions(+), 16 deletions(-)
create mode 100644 dwlctl.c
create mode 100644 protocols/river-control-unstable-v1.xml
create mode 100644 river-control.h
@ -78,9 +78,18 @@ index 578194f..029dfad 100644
dist: clean
mkdir -p dwl-$(VERSION)
diff --git a/config.def.h b/config.def.h
index 95c2afa..754b50c 100644
index 95c2afa..72afbd6 100644
--- a/config.def.h
+++ b/config.def.h
@@ -6,7 +6,7 @@
/* appearance */
static const int sloppyfocus = 1; /* focus follows mouse */
static const int bypass_surface_visibility = 0; /* 1 means idle inhibitors will disable idle tracking even if it's surface isn't visible */
-static const unsigned int borderpx = 1; /* border pixel of windows */
+static unsigned int borderpx = 1; /* border pixel of windows */
static const float rootcolor[] = COLOR(0x222222ff);
static const float bordercolor[] = COLOR(0x444444ff);
static const float focuscolor[] = COLOR(0x005577ff);
@@ -21,7 +21,14 @@ static const float fullscreen_bg[] = {0.0f, 0.0f, 0.0f, 1.0f}; /* You ca
static int log_level = WLR_ERROR;