mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-09 08:18:09 +02:00
terminal: Don't set terminal size before we have the pty
This commit is contained in:
parent
487213defd
commit
54b8683784
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue