diff options
| author | BossCode45 <human.cyborg42@gmail.com> | 2023-06-03 21:30:05 +1200 |
|---|---|---|
| committer | BossCode45 <human.cyborg42@gmail.com> | 2023-06-03 21:30:05 +1200 |
| commit | e9cc5756dbb0a2d079a7b5e3438d79945f819df5 (patch) | |
| tree | 3881cb6bed150ef11252ef04a5e11c05d5af05f8 /keybinds.h | |
| parent | 01bc6a33eb235cd10851e2c31b99e6840603ca7d (diff) | |
| download | YATwm-e9cc5756dbb0a2d079a7b5e3438d79945f819df5.tar.gz YATwm-e9cc5756dbb0a2d079a7b5e3438d79945f819df5.zip | |
feat: Keybind updates
Re added the ability to swap super and mod as a config parameter (the
~swapmods~) command).
Finally fixed keybinds sometimes not working because of numlock,
bitwise & with the modifiers I actually care about.
Diffstat (limited to 'keybinds.h')
| -rw-r--r-- | keybinds.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -8,6 +8,7 @@ #include <vector> #include "commands.h" +#include "config.h" #include "util.h" struct Keybind { @@ -18,12 +19,14 @@ struct Keybind { class KeybindsModule { public: - KeybindsModule(CommandsModule& commandsModule, Globals& globals); + KeybindsModule(CommandsModule& commandsModule, Config& cfg, Globals& globals); ~KeybindsModule() = default; const void bind(const CommandArg* argv); const void handleKeypress(XKeyEvent e); + const void clearKeybinds(); private: std::vector<Keybind> binds; CommandsModule& commandsModule; + Config& cfg; Globals& globals; }; |
