summaryrefslogtreecommitdiff
path: root/keybinds.h
diff options
context:
space:
mode:
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;
};