From 54b868378430649aeca94f8a8f373bf9006f28ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Tue, 21 Jun 2011 16:31:11 -0400 Subject: [PATCH] terminal: Don't set terminal size before we have the pty --- clients/terminal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clients/terminal.c b/clients/terminal.c index 0d41226b..6b2cc8c8 100644 --- a/clients/terminal.c +++ b/clients/terminal.c @@ -2316,9 +2316,6 @@ terminal_create(struct display *display, int fullscreen) cairo_destroy(cr); cairo_surface_destroy(surface); - terminal_resize(terminal, 80, 24); - terminal_draw(terminal); - return terminal; } @@ -2368,6 +2365,9 @@ terminal_run(struct terminal *terminal, const char *path) g_io_add_watch(terminal->channel, G_IO_IN, io_handler, terminal); g_io_add_watch(terminal->channel, G_IO_HUP, io_handler, terminal); + terminal_resize(terminal, 80, 24); + terminal_draw(terminal); + return 0; }