Commit 786292d9aa58e6264e0912c181f83362c8e58778

Stefan Sperling 2018-09-02T15:39:29

fix tog focus indication with backspace key

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tog/tog.c b/tog/tog.c
index 8a17e5e..1588ddc 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -401,6 +401,8 @@ view_input(struct tog_view **new, struct tog_view **dead,
 				*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);