From 80988cd6f49fe6e7302fbb9fecf6dae4014ca355 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Mon, 6 Jan 2020 13:09:51 -0800 Subject: [PATCH] GUACAMOLE-249: Provide SetNull and SetDefault implementations for rdpPointer. --- src/protocols/rdp/pointer.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/protocols/rdp/pointer.c b/src/protocols/rdp/pointer.c index 9f66c6a4..5a72c787 100644 --- a/src/protocols/rdp/pointer.c +++ b/src/protocols/rdp/pointer.c @@ -102,12 +102,25 @@ void guac_rdp_pointer_free(rdpContext* context, rdpPointer* pointer) { } BOOL guac_rdp_pointer_set_null(rdpContext* context) { - /* STUB */ + + guac_client* client = ((rdp_freerdp_context*) context)->client; + guac_rdp_client* rdp_client = (guac_rdp_client*) client->data; + + /* Set cursor to empty/blank graphic */ + guac_common_cursor_set_blank(rdp_client->display->cursor); + return TRUE; + } BOOL guac_rdp_pointer_set_default(rdpContext* context) { - /* STUB */ + + guac_client* client = ((rdp_freerdp_context*) context)->client; + guac_rdp_client* rdp_client = (guac_rdp_client*) client->data; + + /* Set cursor to embedded pointer */ + guac_common_cursor_set_pointer(rdp_client->display->cursor); + return TRUE; }