[mutter] remote-desktop: Fix notify axis input validity check



commit 9ed236bd677d4a54b001c7a0b30fe863c372c6d1
Author: Jonas Ådahl <jadahl gmail com>
Date:   Mon Jan 29 14:26:47 2018 +0800

    remote-desktop: Fix notify axis input validity check
    
    The check was inverted; allowed axis are 0 and 1, not the other way
    around.

 src/backends/meta-remote-desktop-session.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/backends/meta-remote-desktop-session.c b/src/backends/meta-remote-desktop-session.c
index e0519c714..0fb8c2da0 100644
--- a/src/backends/meta-remote-desktop-session.c
+++ b/src/backends/meta-remote-desktop-session.c
@@ -376,7 +376,7 @@ handle_notify_pointer_axis_discrete (MetaDBusRemoteDesktopSession *skeleton,
       return TRUE;
     }
 
-  if (axis <= 1)
+  if (axis > 1)
     {
       g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR,
                                              G_DBUS_ERROR_FAILED,


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