summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-08-06 09:02:24 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-08-06 09:02:24 (EDT)
commitff2bc6c6cbeae860835198983a5368ffa120dd65 (patch)
tree49fc903081a81cd3e4d3bdc6195ed4df225b6ab4
parent331420a4c787f21864abb836fe2d6bcbc6bda816 (diff)
downloadmazefight-ff2bc6c6cbeae860835198983a5368ffa120dd65.zip
mazefight-ff2bc6c6cbeae860835198983a5368ffa120dd65.tar.gz
mazefight-ff2bc6c6cbeae860835198983a5368ffa120dd65.tar.bz2
tk: Fix focus tab indexing
-rw-r--r--src/tk/box.c2
-rw-r--r--src/tk/grid.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tk/box.c b/src/tk/box.c
index 4b29247..b9faf70 100644
--- a/src/tk/box.c
+++ b/src/tk/box.c
@@ -56,7 +56,7 @@ _mftk_box_index(struct mftk_widget *w, struct mftk_window *win)
{
struct mftk_box *b = (struct mftk_box *) w;
- mftk_window_index(win, b->child);
+ mftk_widget_index(b->child, win);
}
static int
diff --git a/src/tk/grid.c b/src/tk/grid.c
index e34223d..9862088 100644
--- a/src/tk/grid.c
+++ b/src/tk/grid.c
@@ -86,7 +86,7 @@ _mftk_grid_index(struct mftk_widget *w, struct mftk_window *win)
int i;
for (i = 0; i < g->rows * g->cols; ++i) {
- mftk_window_index(win, g->children[i]);
+ mftk_widget_index(g->children[i], win);
}
}