From 7e47f1cea16741008c626fb39a1d6298064608cf Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 9 Jul 2018 18:49:53 -0700 Subject: move example commands to cfg.def.h --- cmdtree.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cmdtree.c') 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); -- cgit v1.2.3