GUACAMOLE-2077: Merge immediately flush mouse cursor position updates to connected users.

GUACAMOLE-2077: Immediately flush mouse cursor position updates to connected users.
This commit is contained in:
Corentin SORIANO 2025-05-29 14:51:14 +02:00 committed by GitHub
commit 43097ff31b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,10 +85,12 @@ static void* LFR_guac_display_broadcast_cursor_state(guac_user* user, void* data
guac_display* display = (guac_display*) data;
/* Send cursor state only if the user is not moving the cursor */
if (user != display->last_frame.cursor_user)
if (user != display->last_frame.cursor_user) {
guac_protocol_send_mouse(user->socket,
display->last_frame.cursor_x, display->last_frame.cursor_y,
display->last_frame.cursor_mask, display->last_frame.timestamp);
guac_socket_flush(user->socket);
}
return NULL;