summaryrefslogtreecommitdiff
path: root/src/bin/e_comp_wl_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/e_comp_wl_input.c')
-rw-r--r--src/bin/e_comp_wl_input.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/bin/e_comp_wl_input.c b/src/bin/e_comp_wl_input.c
index d27d72acd..7e8f2e954 100644
--- a/src/bin/e_comp_wl_input.c
+++ b/src/bin/e_comp_wl_input.c
@@ -183,7 +183,7 @@ _e_comp_wl_input_cb_keyboard_get(struct wl_client *client, struct wl_resource *r
183 183
184 /* send current repeat_info */ 184 /* send current repeat_info */
185 if (wl_resource_get_version(res) >= WL_KEYBOARD_REPEAT_INFO_SINCE_VERSION) 185 if (wl_resource_get_version(res) >= WL_KEYBOARD_REPEAT_INFO_SINCE_VERSION)
186 wl_keyboard_send_repeat_info(res, e_comp_wl->kbd.repeat_rate, e_comp_wl->kbd.repeat_delay); 186 wl_keyboard_send_repeat_info(res, e_config->keyboard.repeat_rate, e_config->keyboard.repeat_delay);
187 187
188 /* send current keymap */ 188 /* send current keymap */
189 wl_keyboard_send_keymap(res, WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1, 189 wl_keyboard_send_keymap(res, WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1,
@@ -419,15 +419,6 @@ e_comp_wl_input_init(void)
419 419
420 e_comp_wl->xkb.fd = -1; 420 e_comp_wl->xkb.fd = -1;
421 421
422 /* get default keyboard repeat rate/delay from configuration */
423 e_comp_wl->kbd.repeat_delay = e_config->keyboard.repeat_delay;
424 e_comp_wl->kbd.repeat_rate = e_config->keyboard.repeat_rate;
425
426 /* check for valid repeat_delay and repeat_rate value */
427 /* if invalid, set the default value of repeat delay and rate value */
428 if (e_comp_wl->kbd.repeat_delay < 0) e_comp_wl->kbd.repeat_delay = 400;
429 if (e_comp_wl->kbd.repeat_rate < 0) e_comp_wl->kbd.repeat_rate = 25;
430
431 /* create the global resource for input seat */ 422 /* create the global resource for input seat */
432 e_comp_wl->seat.global = 423 e_comp_wl->seat.global =
433 wl_global_create(e_comp_wl->wl.disp, &wl_seat_interface, 4, 424 wl_global_create(e_comp_wl->wl.disp, &wl_seat_interface, 4,