2
0
mirror of https://github.com/bakkeby/patches synced 2024-11-11 13:10:25 +00:00

vanitygaps + pertag: enablegaps should be retrieved for the current monitor, not selmon

This commit is contained in:
bakkeby 2022-07-05 15:10:47 +02:00
parent ac8ca99ca7
commit 0d0432e674
3 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
From 3786a63796c661a8a66b4a10aa45dcf77cdf68ac Mon Sep 17 00:00:00 2001
From 5ab2e0de5244432354fc1cbb68c58a831b40ae5c Mon Sep 17 00:00:00 2001
From: Bakkeby <bakkeby@gmail.com>
Date: Mon, 10 Jan 2022 11:26:11 +0100
Subject: [PATCH 2/2] vanitygaps - adds gaps to layouts
@ -162,7 +162,7 @@ index bcb155d..36582e1 100644
{
diff --git a/vanitygaps.c b/vanitygaps.c
new file mode 100644
index 0000000..1a816b6
index 0000000..9b66d53
--- /dev/null
+++ b/vanitygaps.c
@@ -0,0 +1,822 @@
@ -312,7 +312,7 @@ index 0000000..1a816b6
+{
+ unsigned int n, oe, ie;
+ #if PERTAG_PATCH
+ oe = ie = selmon->pertag->enablegaps[selmon->pertag->curtag];
+ oe = ie = m->pertag->enablegaps[m->pertag->curtag];
+ #else
+ oe = ie = enablegaps;
+ #endif // PERTAG_PATCH

View File

@ -118,7 +118,7 @@ index a96f33c..bcb155d 100644
2.19.1
From 3786a63796c661a8a66b4a10aa45dcf77cdf68ac Mon Sep 17 00:00:00 2001
From 5ab2e0de5244432354fc1cbb68c58a831b40ae5c Mon Sep 17 00:00:00 2001
From: Bakkeby <bakkeby@gmail.com>
Date: Mon, 10 Jan 2022 11:26:11 +0100
Subject: [PATCH 2/2] vanitygaps - adds gaps to layouts
@ -282,7 +282,7 @@ index bcb155d..36582e1 100644
{
diff --git a/vanitygaps.c b/vanitygaps.c
new file mode 100644
index 0000000..1a816b6
index 0000000..9b66d53
--- /dev/null
+++ b/vanitygaps.c
@@ -0,0 +1,822 @@
@ -432,7 +432,7 @@ index 0000000..1a816b6
+{
+ unsigned int n, oe, ie;
+ #if PERTAG_PATCH
+ oe = ie = selmon->pertag->enablegaps[selmon->pertag->curtag];
+ oe = ie = m->pertag->enablegaps[m->pertag->curtag];
+ #else
+ oe = ie = enablegaps;
+ #endif // PERTAG_PATCH

View File

@ -1,4 +1,4 @@
From 17ec7643b997f8a7e77aecc36e93185c2b815544 Mon Sep 17 00:00:00 2001
From 3960c9bbf1dc1918ba3bdfe00c4bec2689730b6a Mon Sep 17 00:00:00 2001
From: Bakkeby <bakkeby@gmail.com>
Date: Mon, 10 Jan 2022 14:02:07 +0100
Subject: [PATCH] vanitygaps - adds gaps to layouts
@ -154,7 +154,7 @@ index a96f33c..7a0119d 100644
{
diff --git a/vanitygaps.c b/vanitygaps.c
new file mode 100644
index 0000000..3f31593
index 0000000..640a158
--- /dev/null
+++ b/vanitygaps.c
@@ -0,0 +1,809 @@
@ -304,7 +304,7 @@ index 0000000..3f31593
+{
+ unsigned int n, oe, ie;
+ #if PERTAG_PATCH
+ oe = ie = selmon->pertag->enablegaps[selmon->pertag->curtag];
+ oe = ie = m->pertag->enablegaps[m->pertag->curtag];
+ #else
+ oe = ie = enablegaps;
+ #endif // PERTAG_PATCH