rdp: update comments

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2024-08-28 13:49:11 +04:00
parent d328389ef7
commit d6056111d9
2 changed files with 2 additions and 1 deletions

View File

@ -68,6 +68,7 @@ impl RdpServerDisplay for DisplayHandler {
fn request_layout(&mut self, layout: DisplayControlMonitorLayout) {
let console = self.console.proxy.clone();
// TODO: use a queue and a dedicated task/thread for requests, to preserve order
thread::spawn(move || {
// TODO: multi-monitor
let Some(monitor) = layout.monitors().first() else {

View File

@ -117,7 +117,7 @@ fn push_update(queue: &mut MutexGuard<VecDeque<DisplayUpdate>>, item: DisplayUpd
}
}
ColorPointer(_) | RGBAPointer(_) | HidePointer | DefaultPointer => {
// If there is already a pointer position update in the queue, replace it with the new one
// If there is already a pointer shape update in the queue, replace it with the new one
if let Some(idx) = queue.iter().position(|update| {
matches!(
update,