Commit f41eceb0eda0b67810ef691778ab6e8ab2b184c9

Stefan Sperling 2018-10-24T12:04:26

prevent dead view from being re-used in tog's view_loop

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tog/tog.c b/tog/tog.c
index dbd0f08..518c475 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -657,7 +657,7 @@ view_loop(struct tog_view *view)
 			if (view_is_parent_view(dead_view))
 				prev = TAILQ_PREV(dead_view,
 				    tog_view_list_head, entry);
-			else
+			else if (view->parent != dead_view)
 				prev = view->parent;
 
 			if (dead_view->parent)