summaryrefslogtreecommitdiff
path: root/keybinds.h
diff options
context:
space:
mode:
authorBossCode45 <human.cyborg42@gmail.com>2023-06-01 12:53:13 +1200
committerBossCode45 <human.cyborg42@gmail.com>2023-06-01 12:53:13 +1200
commit01bc6a33eb235cd10851e2c31b99e6840603ca7d (patch)
tree2af16074f305328b66e3c2bc731b8245b718a7b6 /keybinds.h
parent6b3dff404248bcf03e0bf0463a8c53d8918f7eec (diff)
downloadYATwm-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.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/keybinds.h b/keybinds.h
index c0cc955..43f6ef3 100644
--- a/keybinds.h
+++ b/keybinds.h
@@ -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;
};