summaryrefslogtreecommitdiff
path: root/src/managers/KeybindManager.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/managers/KeybindManager.hpp')
-rw-r--r--src/managers/KeybindManager.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/managers/KeybindManager.hpp b/src/managers/KeybindManager.hpp
index 31498677..08a1cba3 100644
--- a/src/managers/KeybindManager.hpp
+++ b/src/managers/KeybindManager.hpp
@@ -7,7 +7,8 @@
#include <functional>
struct SKeybind {
- std::string key = 0;
+ std::string key = "";
+ int keycode = -1;
uint32_t modmask = 0;
std::string handler = "";
std::string arg = "";
@@ -19,7 +20,7 @@ class CKeybindManager {
public:
CKeybindManager();
- bool handleKeybinds(const uint32_t&, const xkb_keysym_t&);
+ bool handleKeybinds(const uint32_t&, const xkb_keysym_t&, const int&);
void addKeybind(SKeybind);
void removeKeybind(uint32_t, const std::string&);
uint32_t stringToModMask(std::string);