[gnome-remote-desktop] session-rdp: Add enum to track status of mouse pointer type



commit cd5fd9e9bb2d5978017a4befef344c76829a819e
Author: Pascal Nowack <Pascal Nowack gmx de>
Date:   Tue Dec 1 08:29:52 2020 +0100

    session-rdp: Add enum to track status of mouse pointer type
    
    Mouse pointer updates in RDP are not just bitmap updates. The protocol
    also allows us to hide the mouse pointer or use the default one that is
    always available on the client.
    
    To be able to track the status of the mouse pointer type, add an enum,
    which reflects the current state of the pointer.
    This allows us in the following commits to only submit an identical
    mouse pointer type (e.g. SYSPTR_NULL) once, reducing extra bandwidth
    usage.

 src/grd-session-rdp.c | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/src/grd-session-rdp.c b/src/grd-session-rdp.c
index e1411a2..9ece1e8 100644
--- a/src/grd-session-rdp.c
+++ b/src/grd-session-rdp.c
@@ -40,6 +40,13 @@ typedef enum _RdpPeerFlag
   RDP_PEER_OUTPUT_ENABLED = 1 << 1,
 } RdpPeerFlag;
 
+typedef enum _PointerType
+{
+  POINTER_TYPE_DEFAULT = 0,
+  POINTER_TYPE_HIDDEN  = 1 << 0,
+  POINTER_TYPE_NORMAL  = 1 << 1,
+} PointerType;
+
 typedef struct _Pointer
 {
   uint8_t *bitmap;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]