Commit Diff


commit - dd2e2f52c1fb7a85d2d76afc68cec1175bbd52bd
commit + e44940c3e5135c640a6eccb2a5ebe054b4759909
blob - da849f2c7865ce55524ada6c7f156dc1f9a3f5cf
blob + 99961153450c2ceb7edca3f2f34cd031e2c19d6e
--- tog/tog.c
+++ tog/tog.c
@@ -786,6 +786,12 @@ static int
 view_is_splitscreen(struct tog_view *view)
 {
 	return view->begin_x > 0 || view->begin_y > 0;
+}
+
+static int
+view_is_fullscreen(struct tog_view *view)
+{
+	return view->nlines == LINES && view->ncols == COLS;
 }
 
 static void
@@ -835,7 +841,7 @@ view_resize(struct tog_view *view)
 	if (view->child) {
 		int hs = view->child->begin_y;
 
-		if (view->child->focussed)
+		if (!view_is_fullscreen(view))
 			view->child->begin_x = view_split_begin_x(view->begin_x);
 		if (view->mode == TOG_VIEW_SPLIT_HRZN ||
 		    view->child->begin_x == 0) {