[wiki] [sites] [dwm][patch][colorschemes] Edit patch || Listeria monocytogenes
commit 960695aec3331ae29e80139163528133cd0d5891
Author: Listeria monocytogenes <listeria_AT_disroot.org>
Date: Wed Jun 26 12:03:07 2024 -0300
[dwm][patch][colorschemes] Edit patch
Use sizeof(Clr *) instead of sizeof(Clr **) in ecalloc().
It's only a semantic difference since they're both pointer types and
have the same size.
diff --git a/dwm.suckless.org/patches/colorschemes/dwm-colorschemes-6.5.diff b/dwm.suckless.org/patches/colorschemes/dwm-colorschemes-6.5.diff
index 7e7884ad..80669f77 100644
--- a/dwm.suckless.org/patches/colorschemes/dwm-colorschemes-6.5.diff
+++ b/dwm.suckless.org/patches/colorschemes/dwm-colorschemes-6.5.diff
_AT_@ -1,6 +1,6 @@
-From 3f7b5b2ebdbd43f562229085802a16e1b1a4ee22 Mon Sep 17 00:00:00 2001
+From 4a8fb76f746eec25b965f8615f1a0bf6bd63fc17 Mon Sep 17 00:00:00 2001
From: Listeria monocytogenes <listeria_AT_disroot.org>
-Date: Mon, 22 Apr 2024 14:28:01 -0300
+Date: Wed, 26 Jun 2024 11:49:20 -0300
Subject: [PATCH] add setscheme() to cycle between colorschemes
---
_AT_@ -42,7 +42,7 @@ index 9efa774..f87f707 100644
TAGKEYS( XK_2, 1)
TAGKEYS( XK_3, 2)
diff --git a/dwm.c b/dwm.c
-index f1d86b2..53b1eaf 100644
+index f1d86b2..41b18a5 100644
--- a/dwm.c
+++ b/dwm.c
_AT_@ -59,7 +59,7 @@
_AT_@ -114,7 +114,7 @@ index f1d86b2..53b1eaf 100644
- scheme = ecalloc(LENGTH(colors), sizeof(Clr *));
- for (i = 0; i < LENGTH(colors); i++)
- scheme[i] = drw_scm_create(drw, colors[i], 3);
-+ schemes = ecalloc(LENGTH(colors), SchemeN * sizeof(Clr **));
++ schemes = ecalloc(LENGTH(colors), SchemeN * sizeof(Clr *));
+ for (j = LENGTH(colors) - 1; j >= 0; j--) {
+ scheme = &schemes[j * SchemeN];
+ for (i = 0; i < SchemeN; i++)
_AT_@ -124,5 +124,5 @@ index f1d86b2..53b1eaf 100644
updatebars();
updatestatus();
--
-2.44.0
+2.45.2
diff --git a/dwm.suckless.org/patches/colorschemes/index.md b/dwm.suckless.org/patches/colorschemes/index.md
index 347acd96..477ed9db 100644
--- a/dwm.suckless.org/patches/colorschemes/index.md
+++ b/dwm.suckless.org/patches/colorschemes/index.md
_AT_@ -16,7 +16,7 @@ Default keybindings
Download
--------
-* [dwm-colorschemes-6.5.diff](dwm-colorschemes-6.5.diff) (2024-04-22)
+* [dwm-colorschemes-6.5.diff](dwm-colorschemes-6.5.diff) (2024-06-26)
Authors
-------
Received on Wed Jun 26 2024 - 17:08:13 CEST
This archive was generated by hypermail 2.3.0
: Wed Jun 26 2024 - 17:12:54 CEST