Contents of /trunk/hal/patches/hal-0.5.10-fix-the-keyboard-addon-to-not-ignore-key-repeat-even.patch
Parent Directory | Revision Log
Revision 597 -
(show annotations)
(download)
Mon May 19 19:05:19 2008 UTC (16 years, 4 months ago) by niro
File size: 1135 byte(s)
Mon May 19 19:05:19 2008 UTC (16 years, 4 months ago) by niro
File size: 1135 byte(s)
-gentoo patches
1 | From b09e2adffa491d788784954e48be88621871e3e8 Mon Sep 17 00:00:00 2001 |
2 | From: Sjoerd Simons <sjoerd@luon.net> |
3 | Date: Fri, 7 Dec 2007 23:09:00 +0100 |
4 | Subject: [PATCH] fix the keyboard addon to not ignore key repeat events |
5 | |
6 | This allows one to for example just hold down the brightness keys instead of |
7 | needing to tap it to change it multiple steps. Patch by Ryan Lortie. |
8 | --- |
9 | hald/linux/addons/addon-input.c | 2 +- |
10 | 1 files changed, 1 insertions(+), 1 deletions(-) |
11 | |
12 | diff --git a/hald/linux/addons/addon-input.c b/hald/linux/addons/addon-input.c |
13 | index 2ba923b..59fb355 100644 |
14 | --- a/hald/linux/addons/addon-input.c |
15 | +++ b/hald/linux/addons/addon-input.c |
16 | @@ -284,7 +284,7 @@ event_io (GIOChannel *channel, GIOCondition condition, gpointer data) |
17 | } |
18 | } |
19 | } |
20 | - } else if (input_data->event.type == EV_KEY && key_name[input_data->event.code] != NULL && input_data->event.value == 1) { |
21 | + } else if (input_data->event.type == EV_KEY && key_name[input_data->event.code] != NULL && input_data->event.value) { |
22 | dbus_error_init (&error); |
23 | libhal_device_emit_condition (ctx, input_data->udi, |
24 | "ButtonPressed", |
25 | -- |
26 | 1.5.3.7 |
27 |