diff options
| author | BossCode45 <human.cyborg42@gmail.com> | 2023-06-01 12:53:13 +1200 |
|---|---|---|
| committer | BossCode45 <human.cyborg42@gmail.com> | 2023-06-01 12:53:13 +1200 |
| commit | 01bc6a33eb235cd10851e2c31b99e6840603ca7d (patch) | |
| tree | 2af16074f305328b66e3c2bc731b8245b718a7b6 /keybinds.h | |
| parent | 6b3dff404248bcf03e0bf0463a8c53d8918f7eec (diff) | |
| download | YATwm-01bc6a33eb235cd10851e2c31b99e6840603ca7d.tar.gz YATwm-01bc6a33eb235cd10851e2c31b99e6840603ca7d.zip | |
IT WORKS!!!!!!
The new config commands system works, finally able to run this as a
test and it works!!!!!.
Still more to be done but at least it works.
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; }; |
