summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2011-06-21 16:31:11 -0400
committerKristian Høgsberg <krh@bitplanet.net>2011-06-21 16:31:11 -0400
commit54b868378430649aeca94f8a8f373bf9006f28ca (patch)
tree928743fc3cc9f3c98f185299e422d80c02b5be3f
parent487213defdb16e62cbe90cc956a07297f391a6e3 (diff)
terminal: Don't set terminal size before we have the pty
-rw-r--r--clients/terminal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/clients/terminal.c b/clients/terminal.c
index 0d41226..6b2cc8c 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;
}