summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJengHyun Kang <jhyuni.kang@samsung.com>2016-05-02 20:40:37 +0900
committerJengHyun Kang <jhyuni.kang@samsung.com>2016-05-02 20:40:37 +0900
commit09105dcacf525d2029bc9c9267412b78a87567a9 (patch)
treeb31cc5152eed5169eb609e1f055f0b1e45f8414c
parent4c9d8a9c7834d4509e4f92e13d93a07d2ae7b22b (diff)
downloadxkeyboard-config-09105dcacf525d2029bc9c9267412b78a87567a9.tar.gz
xkeyboard-config-09105dcacf525d2029bc9c9267412b78a87567a9.tar.bz2
xkeyboard-config-09105dcacf525d2029bc9c9267412b78a87567a9.zip
-rw-r--r--cache/cache.c6
-rw-r--r--packaging/xkeyboard-config.spec3
2 files changed, 5 insertions, 4 deletions
diff --git a/cache/cache.c b/cache/cache.c
index 71b7888e..ac287b3b 100644
--- a/cache/cache.c
+++ b/cache/cache.c
@@ -40,8 +40,8 @@ void parseKeymapFile(struct xkb_keymap *map)
if (!tmp) continue;
keycode = atoi(tmp) + 8;
- res = xkb_keymap_key_set_repeats(map, keycode, 0);
- printf("Set key(%d) to disable repeat: %d\n", keycode, res);
+ res = xkb_keymap_key_set_repeats(map, keycode, 1);
+ printf("Set key(%d) to enable repeat: %d\n", keycode, res);
}
}
@@ -190,7 +190,7 @@ int main(int argc, char **argv)
char *cache_path = NULL;
FILE *file = NULL;
int len_cache_path;
-
+
memset(&names, 0, sizeof(names));
parseArgs(argc, argv, &names);
diff --git a/packaging/xkeyboard-config.spec b/packaging/xkeyboard-config.spec
index 44f38367..71f482e6 100644
--- a/packaging/xkeyboard-config.spec
+++ b/packaging/xkeyboard-config.spec
@@ -29,7 +29,7 @@ BuildRequires: pkgconfig(xkbcommon)
%global TZ_SYS_RO_SHARE %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:/usr/share}
%global TZ_SYS_VAR %{?TZ_SYS_VAR:%TZ_SYS_VAR}%{!?TZ_SYS_VAR:/opt/var}
-%global KEYMAP_FILE_PATH "${TZ_SYS_RO_SHARE}/X11/xkb/tizen_key_layout.txt"
+%global KEYMAP_FILE_PATH "%{TZ_SYS_RO_SHARE}/X11/xkb/tizen_key_layout.txt"
%description
The X Keyboard Extension essentially replaces the core protocol
@@ -81,6 +81,7 @@ sed -i 's/evdev/tizen_%{?profile}/g' %{buildroot}/%{TZ_SYS_RO_SHARE}/X11/xkb/rul
ln -sf tizen_"%{?profile}" %{buildroot}/%{TZ_SYS_RO_SHARE}/X11/xkb/rules/evdev
export LOCAL_KEYMAP_PATH=%{buildroot}/%{TZ_SYS_RO_SHARE}/X11/xkb
./remove_unused_files.sh
+
export RULE_FILE_PATH=%{TZ_SYS_RO_SHARE}/X11/xkb/xkb.rule
export KEYMAP_FILE_PATH="%{KEYMAP_FILE_PATH}"
%ifarch aarch64 x86_64