commit - 317b96e783d7edefc895d1f2bd6f8925d0f40cd5
commit + d90f59bfbb53d51683fc54e5bf524f4e33dcc707
blob - a17d47c03e9cfc4d5c75c891b59110838baced46
blob + 58d2f07e47d89a0c50473936b071a232ca8758af
--- tog/tog.c
+++ tog/tog.c
PANEL *panel;
int nlines, ncols, begin_y, begin_x;
int lines, cols; /* copies of LINES and COLS */
- int focussed;
struct tog_view *parent;
struct tog_view *child;
*focus = next;
else
*focus = TAILQ_FIRST(views);
- view->focussed = 0;
- (*focus)->focussed = 1;
break;
case KEY_BACKSPACE:
prev = TAILQ_PREV(view, tog_view_list_head, entry);
TAILQ_INIT(&views);
TAILQ_INSERT_HEAD(&views, view, entry);
- view->focussed = 1;
while (!TAILQ_EMPTY(&views) && !done) {
err = view_show(view);
if (err)
err = view_set_child(new_view->parent, new_view);
if (err)
goto done;
- new_view->parent->focussed = 0;
}
view = new_view;
- view->focussed = 1;
}
}
done: