[Wayland-bugs] [Bug 96259] Imprecise click
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Jun 15 05:46:15 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=96259
--- Comment #16 from Paviluf <jeremy9856 at gmail.com> ---
(In reply to Peter Hutterer from comment #15)
> You'll have to modify the source itself (src/evdev-mt-touchpad.c). Then
> rebuild, run the tools/event-gui tool to check the differences. It will show
> any pointer movements on the canvas and you don't have to restart X after
> each change.
Ok, this is what I have done and I have to say that it was not that simple for
someone that is not a developer ;)
So, I cloned the libinput repo :
$ git clone git://anongit.freedesktop.org/wayland/libinput
I modified the source (src/evdev-mt-touchpad.c) like this :
tp_init_hysteresis(struct tp_dispatch *tp)
{
int res_x, res_y;
tp->hysteresis_margin.x = 0;
tp->hysteresis_margin.y = 0;
if (tp->device->model_flags & EVDEV_MODEL_PRECISE_TOUCHPAD)
return;
res_x = tp->device->abs.absinfo_x->resolution;
res_y = tp->device->abs.absinfo_y->resolution;
tp->hysteresis_margin.x = 8;
tp->hysteresis_margin.y = 8;
return;
}
I rebuild it :
$ cd libinput
$ ./autogen.sh --prefix=$WLD --enable-event-gui
I didn't found the needed dependencies so I installed them each time it
complain :D
By the way it's not so easy to find that "--enable-event-gui" is needed to
build the event-gui tool.
$ make && sudo make install
$ sudo reboot
It seem that worked because with the 2.1 firmware it's much much better, there
is almost no movement, like with synaptics. With the 2.0 firmware there is no
visible change since it already worked pretty well.
However I don't know how to use the event-gui tool.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20160615/71800150/attachment-0001.html>
More information about the wayland-bugs
mailing list