From 0102f03a2fa4b551efd8f94128705a34385154fb Mon Sep 17 00:00:00 2001 From: pentamassiv Date: Wed, 25 Oct 2023 02:50:39 +0200 Subject: [PATCH] dont check if alive --- src/linux/wayland.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/linux/wayland.rs b/src/linux/wayland.rs index 15bf2bff..a86a885d 100644 --- a/src/linux/wayland.rs +++ b/src/linux/wayland.rs @@ -1,10 +1,10 @@ +use std::collections::VecDeque; use std::convert::TryInto; use std::env; use std::os::unix::io::AsFd; use std::os::unix::net::UnixStream; use std::path::PathBuf; use std::time::Instant; -use std::{collections::VecDeque, sync::Arc}; use log::{debug, error, trace, warn}; use wayland_client::{ @@ -190,7 +190,7 @@ impl Con { fn send_key_event(&mut self, keycode: Keycode, direction: Direction) -> InputResult<()> { if self.virtual_keyboard.is_some() { let vk = self.virtual_keyboard.take().expect("not possible"); - is_alive(&vk)?; + // is_alive(&vk)?; let time = self.get_time(); let keycode = keycode - 8; // Adjust by 8 due to the xkb/xwayland requirements @@ -215,7 +215,7 @@ impl Con { fn send_modifier_event(&mut self, modifiers: ModifierBitflag) -> InputResult<()> { if self.virtual_keyboard.is_some() { let vk = self.virtual_keyboard.take().expect("not possible"); - is_alive(&vk)?; + // is_alive(&vk)?; trace!("vk.modifiers({modifiers}, 0, 0, 0)"); vk.modifiers(0, 0, modifiers, 0); self.flush()?; @@ -233,7 +233,7 @@ impl Con { trace!("apply_keymap(&mut self)"); if self.virtual_keyboard.is_some() { let vk = self.virtual_keyboard.take().expect("not possible"); - is_alive(&vk)?; + // is_alive(&vk)?; let Ok(keymap_res) = self.keymap.regenerate() else { return Err(InputError::Mapping( "unable to regenerate keymap".to_string(), @@ -553,7 +553,7 @@ impl KeyboardControllableNext for Con { if self.input_method.is_some() { let (im, mut serial) = self.input_method.take().expect("not possible"); - is_alive(&im)?; + // is_alive(&im)?; trace!("fast text input with imput_method protocol"); im.commit_string(text.to_string()); im.commit(serial);