two small fixes

This commit is contained in:
garbeam 2005-12-06 01:35:34 +02:00
parent d925bcd3b0
commit 3c6b7219b4
2 changed files with 2 additions and 2 deletions

View File

@ -402,7 +402,7 @@ static void _select_page(void *obj, char *cmd)
else if (!strncmp(cmd, "next", 5))
sel = index_next_item((void **) page, page[sel]);
else
sel = _strtonum(cmd, 0, count_items((void **) page));
sel = _strtonum(cmd, 0, count_items((void **) page) - 1);
sel_page(page[sel]);
}

View File

@ -173,7 +173,7 @@ for(i in 1 2 3 4 5 6 7 8 9) {
}
wmir write /keys/geometry center,center,100,$BAR_HEIGHT
wmir write /keys/font $FONT
wmir write /keys/box/font $FONT
selstyle /keys/box
kmode normal