summaryrefslogtreecommitdiff
path: root/keybinds.cpp
diff options
context:
space:
mode:
authorBossCode45 <human.cyborg42@gmail.com>2023-06-18 21:31:41 +1200
committerBossCode45 <human.cyborg42@gmail.com>2023-06-18 21:31:41 +1200
commit557faa2603d33d6f6a8b7baa9c9f7891bfcb8d30 (patch)
tree825fd5fd7393ea40e4032a28ab16d6d6ed89dd88 /keybinds.cpp
parentd4196b2476909e2c92ece6363eee7f450d74be5f (diff)
downloadYATwm-557faa2603d33d6f6a8b7baa9c9f7891bfcb8d30.tar.gz
YATwm-557faa2603d33d6f6a8b7baa9c9f7891bfcb8d30.zip
feat: Updated readme
Updated the readme and added a default config file.
Diffstat (limited to 'keybinds.cpp')
-rw-r--r--keybinds.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/keybinds.cpp b/keybinds.cpp
index 3a431f0..64d3fc8 100644
--- a/keybinds.cpp
+++ b/keybinds.cpp
@@ -15,10 +15,7 @@ KeybindsModule::KeybindsModule(CommandsModule& commandsModule, Config& cfg, Glob
globals(globals),
cfg(cfg)
{
- CommandArgType* bindArgs = new CommandArgType[2];
- bindArgs[0] = STR;
- bindArgs[1] = STR_REST;
- commandsModule.addCommand("bind", &KeybindsModule::bind, 2, bindArgs, this);
+ commandsModule.addCommand("bind", &KeybindsModule::bind, 2, {STR, STR_REST}, this);
this->updateMousePos = updateMousePos;
}