~sircmpwn/scurvy

3f438f7de6808b1502f4a4b80c6cdfa34322a3a2 — Drew DeVault 4 years ago 07a80e2
Damage vterm on buffer switch
1 files changed, 4 insertions(+), 0 deletions(-)

M src/wayland/main.c
M src/wayland/main.c => src/wayland/main.c +4 -0
@@ 80,7 80,11 @@ int wayland_main(struct scurvy_vterm *term, struct scurvy_child *child) {
	win->term = term;
	win->notify_resize = window_resize;
	while (wl_display_dispatch(registry->display) != -1) {
		struct buffer *old_buffer = win->buffer;
		if (window_prerender(win) && win->cairo) {
			if (old_buffer != win->buffer) {
				vterm_screen_flush_damage(term->vtscreen);
			}
			child_read_pty(child);
			child_write_pty(child);
			term_render(term, win->cairo);