mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-16 06:59:44 -05:00
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.
This commit is contained in:
parent
52c67284e2
commit
68a69ee079
2 changed files with 63 additions and 63 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue