summaryrefslogtreecommitdiff
path: root/cmdtree.c
diff options
context:
space:
mode:
authorWilliam Casarin <jb55@jb55.com>2018-07-09 18:49:53 -0700
committerWilliam Casarin <jb55@jb55.com>2018-07-09 18:49:53 -0700
commit7e47f1cea16741008c626fb39a1d6298064608cf (patch)
tree7f57a77bf362cf35f14f31c86ca1c5e2b3039c5a /cmdtree.c
parent1ee2efb9667af35d5e5ccfea6824701c2fdbce44 (diff)
move example commands to cfg.def.h
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);