Add syncs where we're expecting guac_socket_flush to flush a frame.
This commit is contained in:
parent
44d0e08a3c
commit
92c42ca959
@ -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,
|
guac_protocol_send_cfill(socket, GUAC_COMP_SRC, select_layer,
|
||||||
0x00, 0x00, 0x00, 0x00);
|
0x00, 0x00, 0x00, 0x00);
|
||||||
|
|
||||||
|
guac_protocol_send_sync(socket, display->client->last_sent_timestamp);
|
||||||
guac_socket_flush(socket);
|
guac_socket_flush(socket);
|
||||||
|
|
||||||
/* Text is no longer selected */
|
/* 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,
|
guac_protocol_send_cfill(socket, GUAC_COMP_SRC, select_layer,
|
||||||
0x00, 0x80, 0xFF, 0x60);
|
0x00, 0x80, 0xFF, 0x60);
|
||||||
|
|
||||||
|
guac_protocol_send_sync(socket, display->client->last_sent_timestamp);
|
||||||
guac_socket_flush(socket);
|
guac_socket_flush(socket);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -402,6 +402,8 @@ int ssh_guac_client_size_handler(guac_client* client, int width, int height) {
|
|||||||
terminal->scroll_end = rows - 1;
|
terminal->scroll_end = rows - 1;
|
||||||
|
|
||||||
guac_terminal_display_flush(terminal->display);
|
guac_terminal_display_flush(terminal->display);
|
||||||
|
guac_protocol_send_sync(terminal->client->socket,
|
||||||
|
client->last_sent_timestamp);
|
||||||
guac_socket_flush(terminal->client->socket);
|
guac_socket_flush(terminal->client->socket);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -393,6 +393,8 @@ void guac_terminal_scroll_display_down(guac_terminal* terminal,
|
|||||||
}
|
}
|
||||||
|
|
||||||
guac_terminal_display_flush(terminal->display);
|
guac_terminal_display_flush(terminal->display);
|
||||||
|
guac_protocol_send_sync(terminal->client->socket,
|
||||||
|
terminal->client->last_sent_timestamp);
|
||||||
guac_socket_flush(terminal->client->socket);
|
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_terminal_display_flush(terminal->display);
|
||||||
|
guac_protocol_send_sync(terminal->client->socket,
|
||||||
|
terminal->client->last_sent_timestamp);
|
||||||
guac_socket_flush(terminal->client->socket);
|
guac_socket_flush(terminal->client->socket);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user