Commit Diff


commit - a3404814eb460fb4f5af7a21716844847f9bd425
commit + 786292d9aa58e6264e0912c181f83362c8e58778
blob - 8a17e5e8a46a045d862347d0fb199f8a407314ae
blob + 1588ddcc15f3d237c38309143807c857ea2fa96d
--- tog/tog.c
+++ tog/tog.c
@@ -401,6 +401,8 @@ view_input(struct tog_view **new, struct tog_view **de
 				*focus = prev;
 			else
 				*focus = TAILQ_LAST(views, tog_view_list_head);
+			view->focussed = 0;
+			(*focus)->focussed = 1;
 			break;
 		case 'q':
 			err = view->input(new, dead, view, ch);