Commit Diff


commit - 49d4a01751d39b078bfb27a2d63b5cfa69e410fd
commit + 24b9cfdc78b2ec3ec3025ac9a63370ef72ff63fb
blob - b458f29d2fc7c248f6f3bb6668d560ec46596515
blob + 47dad3957279f9d6e6403c0b028d5cad6a803b74
--- tog/tog.c
+++ tog/tog.c
@@ -779,6 +779,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
@@ -828,7 +834,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) {