[Spice-devel] [PATCH spice-gtk] Fix disabling mouse acceleration on X11
Hans de Goede
hdegoede at redhat.com
Fri Oct 19 03:12:15 PDT 2012
Hi,
On 10/19/2012 12:05 PM, Christophe Fergeau wrote:
> On Fri, Oct 19, 2012 at 11:49:51AM +0200, Hans de Goede wrote:
>> Hi,
>>
>> On 10/18/2012 08:45 PM, Marc-André Lureau wrote:
>>> It turns out the acceleration code didn't work, because we didn't set
>>> it to the default values. Then we need to restore it back. Eventually,
>>> it would be nicer to inhibit gnome-settings-daemon to apply devices
>>> ghanges, and restore settings when un-inhibiting.
>>
>> Hmm, interesting. I'm pretty sure I tested the original patch, and back
>> in the days I tested it, it worked as advertised. But maybe a newer version
>> of Xorg has changed its behavior. Or maybe my testing was wrong...
>>
>> From the XChangePointerControl man-page:
>>
>> do_accel Specifies a Boolean value that controls whether the values
>> for the accel_numerator or accel_denominator are used.
>>
>> do_threshold
>> Specifies a Boolean value that controls whether the value for
>> the threshold is used.
>>
>> I interpreted setting these 2 to false as meaning disable accel, but one
>> could argue they mean don't change accel / threshold, which is an interpretation
>> which would explain your patch.
>
> This is what the manpage is saying a bit further down:
>
> "The values of the do_accel and do_threshold arguments must be True for the
> pointer values to be set, or the parameters are unchanged."
Then I guess my original patches was wrong, and I only imagined it fixing the
double accel issues I was seeing :)
Regards,
Hans
More information about the Spice-devel
mailing list