diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2018-01-29 14:26:47 +0800 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2018-02-23 19:33:31 +0800 |
commit | 9ed236bd677d4a54b001c7a0b30fe863c372c6d1 (patch) | |
tree | 665e6c88389e4d2f30f81ee3736cbcfa83c2a484 | |
parent | a1517cae1cef7267886e9f197cf81c5abfd46c03 (diff) | |
download | mutter-9ed236bd677d4a54b001c7a0b30fe863c372c6d1.tar.gz |
remote-desktop: Fix notify axis input validity check
The check was inverted; allowed axis are 0 and 1, not the other way
around.
-rw-r--r-- | 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 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, |