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

This commit is contained in:
Michael Jumper 2025-05-28 22:22:32 -07:00
parent a0c883be58
commit 5a02f1d50c
No known key found for this signature in database
GPG Key ID: 5B2977AEE5E4518F

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;