config.def.h: make keys and buttons const - dwm - dynamic window manager | |
git clone git://git.suckless.org/dwm | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 84d7322113c2bf023f5eaa8537fb0e72d4105046 | |
parent 5799dd1fca6576b662d299e210cd5933b29d502d | |
Author: NRK <[email protected]> | |
Date: Thu, 18 Aug 2022 22:13:08 +0600 | |
config.def.h: make keys and buttons const | |
pretty much all other variables are declared as const when they're not | |
modified. | |
Diffstat: | |
M config.def.h | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/config.def.h b/config.def.h | |
@@ -60,7 +60,7 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, mani… | |
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufon… | |
static const char *termcmd[] = { "st", NULL }; | |
-static Key keys[] = { | |
+static const Key keys[] = { | |
/* modifier key function argument */ | |
{ MODKEY, XK_p, spawn, {.v = dmenu… | |
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termc… | |
@@ -99,7 +99,7 @@ static Key keys[] = { | |
/* button definitions */ | |
/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientW… | |
-static Button buttons[] = { | |
+static const Button buttons[] = { | |
/* click event mask button function … | |
{ ClkLtSymbol, 0, Button1, setlayout, … | |
{ ClkLtSymbol, 0, Button3, setlayout, … |