aboutsummaryrefslogtreecommitdiff
path: root/include/xwayland
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-03-06 12:29:20 +0100
committerDrew DeVault <sir@cmpwn.com>2020-03-06 21:34:44 +0100
commit68a69ee0798694c54e434f425b4d56690b65b939 (patch)
tree906faad4a312c438cf8fb351b155df8f9b548169 /include/xwayland
parent52c67284e25c6a31a260b4918132f7842e18532d (diff)
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.
Diffstat (limited to 'include/xwayland')
-rw-r--r--include/xwayland/xwm.h2
1 files changed, 1 insertions, 1 deletions
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];