diff options
Diffstat (limited to 'keybinds.h')
| -rw-r--r-- | keybinds.h | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -8,24 +8,22 @@ #include <vector> #include "commands.h" +#include "util.h" struct Keybind { - KeyCode key; + KeySym key; unsigned int modifiers; std::string command; }; class KeybindsModule { public: - KeybindsModule(CommandsModule& commandsModule, Display* dpy, Window root); + KeybindsModule(CommandsModule& commandsModule, Globals& globals); ~KeybindsModule() = default; const void bind(const CommandArg* argv); - const void exit(const CommandArg* argv); const void handleKeypress(XKeyEvent e); private: std::vector<Keybind> binds; - bool exitNow; CommandsModule& commandsModule; - Display* dpy; - Window root; + Globals& globals; }; |
