From c80dcb9a2d8ab88d278bac9ab9cdd1642f4bb557 Mon Sep 17 00:00:00 2001 From: Dhruva Sambrani <44899822+DhruvaSambrani@users.noreply.github.com> Date: Mon, 8 Jan 2024 15:41:58 +0100 Subject: [PATCH] update skipfocus --- skipfocus/skipfocus.patch | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/skipfocus/skipfocus.patch b/skipfocus/skipfocus.patch index 9bb361d..10d5c62 100644 --- a/skipfocus/skipfocus.patch +++ b/skipfocus/skipfocus.patch @@ -1,7 +1,7 @@ From 2825a2e8b0dae5d7146ba9bb66e2a3b7265617d5 Mon Sep 17 00:00:00 2001 From: Dhruva Sambrani <44899822+DhruvaSambrani@users.noreply.github.com> 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 +++--- @@ -71,3 +71,33 @@ index 632dabf..a8c87e5 100644 -- 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 +