From c5d7faceba95bcc7803673e86c0b62d4516e3191 Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Tue, 6 Aug 2019 14:22:04 +0200 Subject: [PATCH] main: Use map_keyboard_auto --- src/main.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 98e47e7..7c9730e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,7 +11,7 @@ use os_pipe::pipe; use chrono::Local; use smithay_client_toolkit::keyboard::{ - keysyms, map_keyboard_auto_with_repeat, Event as KbEvent, KeyRepeatKind, KeyState, + keysyms, map_keyboard_auto, Event as KbEvent, KeyState, }; use smithay_client_toolkit::utils::DoubleMemPool; @@ -244,9 +244,8 @@ impl App { // Keyboard processing // let kbd_clone = cmd_queue.clone(); - map_keyboard_auto_with_repeat( + map_keyboard_auto( &seat, - KeyRepeatKind::System, move |event: KbEvent, _| match event { KbEvent::Key { keysym, @@ -267,7 +266,6 @@ impl App { }, _ => (), }, - |_, _| {}, ) .expect("Failed to map keyboard");