Commit Diff


commit - 4918811ff2fbe4e837b99e036523fd438b21e6aa
commit + 1827fdb750b03cedf74f34268984167fceebe4eb
blob - b2f05a9f1e7b45ac6b8a893b9822d0127132a376
blob + ff659e4f20f80264b9195b2269771ae5b29daa41
--- tog/tog.c
+++ tog/tog.c
@@ -782,7 +782,8 @@ view_resize(struct tog_view *view)
 		ncols = view->ncols + (COLS - view->cols);
 
 	if (view->child) {
-		view->child->begin_x = view_split_begin_x(view->begin_x);
+		if (view->child->focussed)
+			view->child->begin_x = view_split_begin_x(view->begin_x);
 		if (view->child->begin_x == 0) {
 			ncols = COLS;