[mutter] remote-desktop-session: Don't always warn about axis steps



commit 371e5df5688677f0eab0f9a9a1ace2aaccd44cda
Author: Jonas Ådahl <jadahl gmail com>
Date:   Wed Jan 24 12:15:27 2018 +0800

    remote-desktop-session: Don't always warn about axis steps
    
    The condition for warning was wrong, causing it to always warn no
    matter the input.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=792062

 src/backends/meta-remote-desktop-session.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/backends/meta-remote-desktop-session.c b/src/backends/meta-remote-desktop-session.c
index 4687475..e0519c7 100644
--- a/src/backends/meta-remote-desktop-session.c
+++ b/src/backends/meta-remote-desktop-session.c
@@ -392,7 +392,7 @@ handle_notify_pointer_axis_discrete (MetaDBusRemoteDesktopSession *skeleton,
       return TRUE;
     }
 
-  if (steps != -1 || steps != 1)
+  if (steps != -1 && steps != 1)
     g_warning ("Multiple steps at at once not yet implemented, treating as one.");
 
   /*


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