@ -549,13 +549,17 @@ void sway_keyboard_configure(struct sway_keyboard *keyboard) {
wlr_keyboard_led_update ( wlr_device - > keyboard , leds ) ;
wlr_keyboard_led_update ( wlr_device - > keyboard , leds ) ;
}
}
if ( input_config & & input_config - > repeat_delay ! = INT_MIN
int repeat_rate = 25 ;
& & input_config - > repeat_rate ! = INT_MIN ) {
if ( input_config & & input_config - > repeat_rate ! = INT_MIN ) {
wlr_keyboard_set_repeat_info ( wlr_device - > keyboard ,
repeat_rate = input_config - > repeat_rate ;
input_config - > repeat_rate , input_config - > repeat_delay ) ;
}
} else {
int repeat_delay = 600 ;
wlr_keyboard_set_repeat_info ( wlr_device - > keyboard , 25 , 600 ) ;
if ( input_config & & input_config - > repeat_delay ! = INT_MIN ) {
repeat_delay = input_config - > repeat_delay ;
}
}
wlr_keyboard_set_repeat_info ( wlr_device - > keyboard , repeat_rate ,
repeat_delay ) ;
xkb_context_unref ( context ) ;
xkb_context_unref ( context ) ;
struct wlr_seat * seat = keyboard - > seat_device - > sway_seat - > wlr_seat ;
struct wlr_seat * seat = keyboard - > seat_device - > sway_seat - > wlr_seat ;
wlr_seat_set_keyboard ( seat , wlr_device ) ;
wlr_seat_set_keyboard ( seat , wlr_device ) ;