cmdtree

A trie command launcher for X11
git clone git://jb55.com/cmdtree
Log | Files | Refs | README | LICENSE

commit 83dbfd357c0a0d7798ad4ccf788476e56a5d5dbf
parent 9a0db85c807a28fdcc49cb11e6ce9e3e9c404dd1
Author: William Casarin <jb55@jb55.com>
Date:   Sun,  8 Jul 2018 12:19:57 -0700

cmdtree: close on escape

Diffstat:
Mcmdtree.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/cmdtree.c b/cmdtree.c @@ -57,7 +57,7 @@ setup() mw = wa.width; lines = MAX(lines, 0); /* mh = (lines + 1) * bh; */ - mh = 50; + mh = 100; swa.override_redirect = True; /* swa.background_pixel = scheme[SchemeNorm][ColBg].pixel; */ @@ -119,7 +119,8 @@ run() { if (e.type == KeyPress) { XmbLookupString(xic, (XKeyEvent*)&e, buf, sizeof buf, &ksym, &status); - if (ksym == XK_q) break; + if (ksym == XK_q) done = 1; + if (ksym == XK_Escape) done = 1; } }