middle-button: don't call libinput_now() in the timeout handler
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 3 Aug 2015 04:38:38 +0000 (14:38 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 4 Aug 2015 05:44:39 +0000 (15:44 +1000)
The argument has "now" already

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev-middle-button.c

index 397b699..b833715 100644 (file)
@@ -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