summaryrefslogtreecommitdiff
path: root/cmdtree.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmdtree.c')
-rw-r--r--cmdtree.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmdtree.c b/cmdtree.c
index 74dc15a..90ff16d 100644
--- a/cmdtree.c
+++ b/cmdtree.c
@@ -320,7 +320,8 @@ int main(void) {
/* parentwin = root; */
parentwin = root;
- rootcmds = test_root_commands(NULL, &ncmds);
+ ncmds = LENGTH(commands);
+ rootcmds = test_root_commands(NULL, commands, ncmds);
if (!XGetWindowAttributes(display, parentwin, &wa))
die("could not get embedding window attributes: 0x%lx",
@@ -331,7 +332,7 @@ int main(void) {
if (!drw_fontset_create(drw, fonts, LENGTH(fonts)))
die("no fonts could be loaded.");
- /* grabkeyboard(); */
+ grabkeyboard();
setup(drw);
run(drw);