summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2022-08-18 22:13:08 +0600
committerrafa_99 <raroma09@gmail.com>2022-08-19 17:12:39 +0100
commit84422dce03b2c1f395bfbab58f8c19c440ffe7a5 (patch)
tree84d441649a0490d9b4ddb74a81575f09600840d4
parentb0e8e8e4038ee10e72791295a093c82176b82ba3 (diff)
config.def.h: make keys and buttons const
pretty much all other variables are declared as const when they're not modified.
-rw-r--r--config.def.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h
index f48cf52..89c76bd 100644
--- a/config.def.h
+++ b/config.def.h
@@ -80,7 +80,7 @@ static const Layout layouts[] = {
/* commands */
static const char *termcmd[] = { "st", NULL };
-static Key keys[] = {
+static const Key keys[] = {
/* modifier key function argument */
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
{ MODKEY, XK_b, togglebar, {0} },
@@ -143,7 +143,7 @@ static Key keys[] = {
/* button definitions */
/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
-static Button buttons[] = {
+static const Button buttons[] = {
/* click event mask button function argument */
{ ClkLtSymbol, 0, Button1, setlayout, {0} },
{ ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },