[mutter/gnome-3-22] clutter/evdev: Avoid losing key repeat timestamp resolution
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gnome-3-22] clutter/evdev: Avoid losing key repeat timestamp resolution
- Date: Wed, 25 Jan 2017 12:11:43 +0000 (UTC)
commit 2166a496fec3bc19a6b3cc34e7271041637d1d42
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 f5ae1dd..2fc040b 100644
--- a/clutter/clutter/evdev/clutter-seat-evdev.c
+++ b/clutter/clutter/evdev/clutter-seat-evdev.c
@@ -185,15 +185,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]