mirror of
https://codeberg.org/dwl/dwl-patches.git
synced 2025-10-26 17:54:17 +00:00
update skipfocus
This commit is contained in:
parent
425132696f
commit
c80dcb9a2d
@ -1,7 +1,7 @@
|
|||||||
From 2825a2e8b0dae5d7146ba9bb66e2a3b7265617d5 Mon Sep 17 00:00:00 2001
|
From 2825a2e8b0dae5d7146ba9bb66e2a3b7265617d5 Mon Sep 17 00:00:00 2001
|
||||||
From: Dhruva Sambrani <44899822+DhruvaSambrani@users.noreply.github.com>
|
From: Dhruva Sambrani <44899822+DhruvaSambrani@users.noreply.github.com>
|
||||||
Date: Mon, 8 Jan 2024 14:54:39 +0100
|
Date: Mon, 8 Jan 2024 14:54:39 +0100
|
||||||
Subject: [PATCH] first skipfocus commit
|
Subject: [PATCH 1/2] first skipfocus commit
|
||||||
|
|
||||||
---
|
---
|
||||||
config.def.h | 6 +++---
|
config.def.h | 6 +++---
|
||||||
@ -71,3 +71,33 @@ index 632dabf..a8c87e5 100644
|
|||||||
--
|
--
|
||||||
2.43.0
|
2.43.0
|
||||||
|
|
||||||
|
|
||||||
|
From d8b2e6141cdf41e854c9017fca66b32e691b7c5b Mon Sep 17 00:00:00 2001
|
||||||
|
From: Dhruva Sambrani <44899822+DhruvaSambrani@users.noreply.github.com>
|
||||||
|
Date: Mon, 8 Jan 2024 15:38:08 +0100
|
||||||
|
Subject: [PATCH 2/2] add permanent skipfocus
|
||||||
|
|
||||||
|
---
|
||||||
|
dwl.c | 6 ++++--
|
||||||
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/dwl.c b/dwl.c
|
||||||
|
index a8c87e5..54a7ed3 100644
|
||||||
|
--- a/dwl.c
|
||||||
|
+++ b/dwl.c
|
||||||
|
@@ -1169,8 +1169,10 @@ focusclient(Client *c, int lift)
|
||||||
|
if (locked)
|
||||||
|
return;
|
||||||
|
|
||||||
|
- if (c && c->skipfocus){
|
||||||
|
- c -> skipfocus = 0;
|
||||||
|
+ if (c && c->skipfocus != 0){
|
||||||
|
+ if (c -> skipfocus == 1) {
|
||||||
|
+ c->skipfocus = 0;
|
||||||
|
+ }
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
2.43.0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user