remote-desktop: Fix notify axis input validity check

The check was inverted; allowed axis are 0 and 1, not the other way
around.
This commit is contained in:
Jonas Ådahl 2018-01-29 14:26:47 +08:00
parent a1517cae1c
commit 9ed236bd67

View File

@ -376,7 +376,7 @@ handle_notify_pointer_axis_discrete (MetaDBusRemoteDesktopSession *skeleton,
return TRUE; return TRUE;
} }
if (axis <= 1) if (axis > 1)
{ {
g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR,
G_DBUS_ERROR_FAILED, G_DBUS_ERROR_FAILED,