[gnome-remote-desktop] remote-desktop: Synchronize remote desktop API with API in mutter



commit e40c397407ab01f9d7d452ca12829a9a8a9c29a9
Author: Pascal Nowack <Pascal Nowack gmx de>
Date:   Sun Feb 14 10:29:19 2021 +0100

    remote-desktop: Synchronize remote desktop API with API in mutter
    
    This fixes some documentation issues and introduces two new properties
    CapsLockState and NumLockState.
    These two properties will be used in later commits to synchronize the
    lock states in mutter with gnome-remote-desktop.

 src/org.gnome.Mutter.RemoteDesktop.xml | 20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/src/org.gnome.Mutter.RemoteDesktop.xml b/src/org.gnome.Mutter.RemoteDesktop.xml
index 0b79f70..7bae10e 100644
--- a/src/org.gnome.Mutter.RemoteDesktop.xml
+++ b/src/org.gnome.Mutter.RemoteDesktop.xml
@@ -81,7 +81,7 @@
     <!--
        NotifyKeyboardKeycode:
 
-       A key identified by a keysym was pressed or released
+       A key identified by an evdev keycode was pressed or released
      -->
     <method name="NotifyKeyboardKeycode">
       <arg name="keycode" type="u" direction="in" />
@@ -111,7 +111,20 @@
     <!--
        NotifyPointerAxis:
 
-       A smooth pointer axis event notification
+       A smooth pointer axis event notification. Relative motion deltas are to be
+       interpreted as pixel movement of a standardized mouse.
+
+       Additionally to the smooth pointer axis event notification, an emulated
+       discrete pointer axis event notification is emitted based on the submitted
+       accumulated smooth scrolling steps.
+       The base for these emulated discrete pointer axis event is the discrete step
+       with the value 10.0.
+       This means that for a delta dx (or dy) with the value 10.0 one emulated
+       discrete scrolling event is emitted.
+       For a high resolution smooth pointer axis event, a smaller value is submitted
+       for each scrolling step.
+       This means: For a double resolution mouse wheel one emulated discrete event
+       is emitted for 2 smooth pointer axis events with each having the value 5.0.
 
        Possible @flags:
          1: finish - scroll motion was finished (e.g. fingers lifted)
@@ -330,6 +343,9 @@
       <arg name="serial" type="u" direction="in" />
     </signal>
 
+    <property name="CapsLockState" type="b" access="read" />
+    <property name="NumLockState" type="b" access="read" />
+
   </interface>
 
 </node>


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