Commit: 7759257a058c2f40273ea50a03692242a7f7cadd
Parent: c985fcd199a405a8914399a0d648485ecc4f55c8
Author: Randy Palamar
Date: Mon, 8 Jul 2024 22:50:48 -0600
actually fix the resize bug
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/main.c b/main.c
@@ -112,6 +112,11 @@ init_window(Term *t, Arena arena)
glfwMakeContextCurrent(t->gl.window);
glfwSetWindowUserPointer(t->gl.window, t);
+ /* NOTE: make sure the terminal performs a resize after initialization. The
+ * terminal code handles this because it also needs to communicate the size
+ * to the child process */
+ t->gl.flags |= NEEDS_RESIZE;
+
/* TODO: swap interval is not needed because we will sleep on waiting for terminal input */
glfwSwapInterval(1);