From e9cc5756dbb0a2d079a7b5e3438d79945f819df5 Mon Sep 17 00:00:00 2001 From: BossCode45 Date: Sat, 3 Jun 2023 21:30:05 +1200 Subject: 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. --- keybinds.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'keybinds.h') diff --git a/keybinds.h b/keybinds.h index 43f6ef3..07d9aea 100644 --- a/keybinds.h +++ b/keybinds.h @@ -8,6 +8,7 @@ #include #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 binds; CommandsModule& commandsModule; + Config& cfg; Globals& globals; }; -- cgit v1.2.3