From 68a69ee0798694c54e434f425b4d56690b65b939 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 6 Mar 2020 12:29:20 +0100 Subject: xwayland: use explicit indexes when initializing atom_map It's very easy to break the mapping between the atom_name enum and the atom_map array. Use explicit indexes to prevent issues. --- include/xwayland/xwm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/xwayland') diff --git a/include/xwayland/xwm.h b/include/xwayland/xwm.h index 00f2f3d5..d7659ea0 100644 --- a/include/xwayland/xwm.h +++ b/include/xwayland/xwm.h @@ -81,7 +81,7 @@ enum atom_name { DND_ACTION_ASK, DND_ACTION_PRIVATE, _NET_CLIENT_LIST, - ATOM_LAST, + ATOM_LAST // keep last }; extern const char *atom_map[ATOM_LAST]; -- cgit v1.2.3