[mutter] clutter/evdev: Avoid losing key repeat timestamp resolution
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] clutter/evdev: Avoid losing key repeat timestamp resolution
- Date: Wed, 25 Jan 2017 12:11:54 +0000 (UTC)
commit 73524cadd428ab0421712cc7bbb948aae7813e6d
Author: Rui Matos <tiagomatos gmail com>
Date: Thu Nov 24 18:17:22 2016 +0100
clutter/evdev: Avoid losing key repeat timestamp resolution
Commit 9214d5029c630e6ed8fd9793f6bcb0a0ae451576 changed the notify*
API to use microseconds and we already have a microsecond time source
here so we can use the timestamp directly without losing resolution at
this layer.
https://bugzilla.gnome.org/show_bug.cgi?id=774989
clutter/clutter/evdev/clutter-seat-evdev.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/clutter/clutter/evdev/clutter-seat-evdev.c b/clutter/clutter/evdev/clutter-seat-evdev.c
index b803286..255c219 100644
--- a/clutter/clutter/evdev/clutter-seat-evdev.c
+++ b/clutter/clutter/evdev/clutter-seat-evdev.c
@@ -186,15 +186,13 @@ keyboard_repeat (gpointer data)
{
ClutterSeatEvdev *seat = data;
GSource *source;
- guint32 time_ms;
g_return_val_if_fail (seat->repeat_device != NULL, G_SOURCE_REMOVE);
source = g_main_context_find_source_by_id (NULL, seat->repeat_timer);
- time_ms = g_source_get_time (source) / 1000;
clutter_seat_evdev_notify_key (seat,
seat->repeat_device,
- ms2us (time_ms),
+ g_source_get_time (source),
seat->repeat_key,
AUTOREPEAT_VALUE,
FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]