mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-11 01:40:25 +01:00
middle-button: don't call libinput_now() in the timeout handler
The argument has "now" already Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
603ac39e3b
commit
317cd252be
1 changed files with 1 additions and 3 deletions
|
|
@ -640,9 +640,7 @@ evdev_middlebutton_handle_timeout(uint64_t now, void *data)
|
|||
{
|
||||
struct evdev_device *device = (struct evdev_device*)data;
|
||||
|
||||
evdev_middlebutton_handle_event(device,
|
||||
libinput_now(device->base.seat->libinput),
|
||||
MIDDLEBUTTON_EVENT_TIMEOUT);
|
||||
evdev_middlebutton_handle_event(device, now, MIDDLEBUTTON_EVENT_TIMEOUT);
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue