mirror of
https://codeberg.org/dwl/dwl-patches.git
synced 2025-12-13 00:13:23 +00:00
fix: missing field in Rule isborderless
This commit is contained in:
parent
b48effb3be
commit
27aed70583
@ -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>
|
From: Anant Murmu <freezboltz@gmail.com>
|
||||||
Date: Sat, 29 Nov 2025 20:39:16 +0530
|
Date: Tue, 2 Dec 2025 08:02:16 +0530
|
||||||
Subject: [PATCH] borderless client
|
Subject: [PATCH] fix: missing field in struct Rule isborderless
|
||||||
|
|
||||||
- remove borders from client if rule matches the client
|
|
||||||
---
|
---
|
||||||
config.def.h | 7 ++++---
|
config.def.h | 7 ++++---
|
||||||
dwl.c | 6 +++++-
|
dwl.c | 7 ++++++-
|
||||||
2 files changed, 9 insertions(+), 4 deletions(-)
|
2 files changed, 10 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
diff --git a/config.def.h b/config.def.h
|
diff --git a/config.def.h b/config.def.h
|
||||||
index 95c2afa..9eee6ca 100644
|
index 95c2afa..9eee6ca 100644
|
||||||
@ -29,7 +28,7 @@ index 95c2afa..9eee6ca 100644
|
|||||||
|
|
||||||
/* layout(s) */
|
/* layout(s) */
|
||||||
diff --git a/dwl.c b/dwl.c
|
diff --git a/dwl.c b/dwl.c
|
||||||
index 12f441e..e97654f 100644
|
index 12f441e..572f754 100644
|
||||||
--- a/dwl.c
|
--- a/dwl.c
|
||||||
+++ b/dwl.c
|
+++ b/dwl.c
|
||||||
@@ -137,7 +137,7 @@ typedef struct {
|
@@ -137,7 +137,7 @@ typedef struct {
|
||||||
@ -41,7 +40,15 @@ index 12f441e..e97654f 100644
|
|||||||
uint32_t resize; /* configure serial of a pending resize */
|
uint32_t resize; /* configure serial of a pending resize */
|
||||||
} Client;
|
} 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))
|
if ((!r->title || strstr(title, r->title))
|
||||||
&& (!r->id || strstr(appid, r->id))) {
|
&& (!r->id || strstr(appid, r->id))) {
|
||||||
c->isfloating = r->isfloating;
|
c->isfloating = r->isfloating;
|
||||||
@ -49,7 +56,7 @@ index 12f441e..e97654f 100644
|
|||||||
newtags |= r->tags;
|
newtags |= r->tags;
|
||||||
i = 0;
|
i = 0;
|
||||||
wl_list_for_each(m, &mons, link) {
|
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)
|
if (!c->mon || !client_surface(c)->mapped)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user