diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2025-05-18 09:35:27 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2025-05-18 09:36:57 +0000 |
| commit | 3e1e3ea38ce8ed43ee61ddb584298f45dd72f1d5 (patch) | |
| tree | bb49b303710a70070bbd845b724b806cf3f1fc1d /xkbcommon-vmod.h | |
| parent | Revert "xkbcommon: require libxkbcommon >= 1.8.0" (diff) | |
libxkbcommon: don't require 1.8.0
The version bump was done since we now use XKB_VMOD_NAME_*; macros
added in libxkbcommon 1.8.0.
Not all distros have updated libxkbcommon yet (read: Debian). Since
it's fairly easy to work around, let's do that.
Closes #2103
Diffstat (limited to 'xkbcommon-vmod.h')
| -rw-r--r-- | xkbcommon-vmod.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/xkbcommon-vmod.h b/xkbcommon-vmod.h new file mode 100644 index 00000000..44d818ec --- /dev/null +++ b/xkbcommon-vmod.h @@ -0,0 +1,18 @@ +#pragma once + +#include <xkbcommon/xkbcommon-names.h> + +/* Added in libxkbcommon 1.8.0 */ +#if !defined(XKB_VMOD_NAME_ALT) +/* Common *virtual* modifiers, encoded in xkeyboard-config in the compat and + * symbols files. They have been stable since the beginning of the project and + * are unlikely to ever change. */ +#define XKB_VMOD_NAME_ALT "Alt" +#define XKB_VMOD_NAME_HYPER "Hyper" +#define XKB_VMOD_NAME_LEVEL3 "LevelThree" +#define XKB_VMOD_NAME_LEVEL5 "LevelFive" +#define XKB_VMOD_NAME_META "Meta" +#define XKB_VMOD_NAME_NUM "NumLock" +#define XKB_VMOD_NAME_SCROLL "ScrollLock" +#define XKB_VMOD_NAME_SUPER "Super" +#endif |
