fix: missing field in Rule isborderless

This commit is contained in:
Anant Murmu 2025-12-02 08:20:21 +05:30
parent b48effb3be
commit 27aed70583
No known key found for this signature in database
GPG Key ID: 1BFACBA9529DF072

View File

@ -1,13 +1,12 @@
From cf65713492eda1757a151b335785c72cee87e127 Mon Sep 17 00:00:00 2001
From 2a81a809a648046f8361056af06dadf3397fecaa Mon Sep 17 00:00:00 2001
From: Anant Murmu <freezboltz@gmail.com>
Date: Sat, 29 Nov 2025 20:39:16 +0530
Subject: [PATCH] borderless client
Date: Tue, 2 Dec 2025 08:02:16 +0530
Subject: [PATCH] fix: missing field in struct Rule isborderless
- remove borders from client if rule matches the client
---
config.def.h | 7 ++++---
dwl.c | 6 +++++-
2 files changed, 9 insertions(+), 4 deletions(-)
dwl.c | 7 ++++++-
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/config.def.h b/config.def.h
index 95c2afa..9eee6ca 100644
@ -29,7 +28,7 @@ index 95c2afa..9eee6ca 100644
/* layout(s) */
diff --git a/dwl.c b/dwl.c
index 12f441e..e97654f 100644
index 12f441e..572f754 100644
--- a/dwl.c
+++ b/dwl.c
@@ -137,7 +137,7 @@ typedef struct {
@ -41,7 +40,15 @@ index 12f441e..e97654f 100644
uint32_t resize; /* configure serial of a pending resize */
} Client;
@@ -490,6 +490,7 @@ applyrules(Client *c)
@@ -228,6 +228,7 @@ typedef struct {
uint32_t tags;
int isfloating;
int monitor;
+ int isborderless;
} Rule;
typedef struct {
@@ -490,6 +491,7 @@ applyrules(Client *c)
if ((!r->title || strstr(title, r->title))
&& (!r->id || strstr(appid, r->id))) {
c->isfloating = r->isfloating;
@ -49,7 +56,7 @@ index 12f441e..e97654f 100644
newtags |= r->tags;
i = 0;
wl_list_for_each(m, &mons, link) {
@@ -2210,6 +2211,9 @@ resize(Client *c, struct wlr_box geo, int interact)
@@ -2210,6 +2212,9 @@ resize(Client *c, struct wlr_box geo, int interact)
if (!c->mon || !client_surface(c)->mapped)
return;