Add syncs where we're expecting guac_socket_flush to flush a frame.

This commit is contained in:
Michael Jumper 2013-08-22 15:16:49 -07:00
parent 44d0e08a3c
commit 92c42ca959
3 changed files with 8 additions and 0 deletions

View File

@ -80,6 +80,7 @@ static void __guac_terminal_display_clear_select(guac_terminal_display* display)
guac_protocol_send_cfill(socket, GUAC_COMP_SRC, select_layer,
0x00, 0x00, 0x00, 0x00);
guac_protocol_send_sync(socket, display->client->last_sent_timestamp);
guac_socket_flush(socket);
/* Text is no longer selected */
@ -1004,6 +1005,7 @@ void guac_terminal_display_select(guac_terminal_display* display,
guac_protocol_send_cfill(socket, GUAC_COMP_SRC, select_layer,
0x00, 0x80, 0xFF, 0x60);
guac_protocol_send_sync(socket, display->client->last_sent_timestamp);
guac_socket_flush(socket);
}

View File

@ -402,6 +402,8 @@ int ssh_guac_client_size_handler(guac_client* client, int width, int height) {
terminal->scroll_end = rows - 1;
guac_terminal_display_flush(terminal->display);
guac_protocol_send_sync(terminal->client->socket,
client->last_sent_timestamp);
guac_socket_flush(terminal->client->socket);
}

View File

@ -393,6 +393,8 @@ void guac_terminal_scroll_display_down(guac_terminal* terminal,
}
guac_terminal_display_flush(terminal->display);
guac_protocol_send_sync(terminal->client->socket,
terminal->client->last_sent_timestamp);
guac_socket_flush(terminal->client->socket);
}
@ -450,6 +452,8 @@ void guac_terminal_scroll_display_up(guac_terminal* terminal,
}
guac_terminal_display_flush(terminal->display);
guac_protocol_send_sync(terminal->client->socket,
terminal->client->last_sent_timestamp);
guac_socket_flush(terminal->client->socket);
}