Skip to content

Commit

Permalink
make fn not mut
Browse files Browse the repository at this point in the history
  • Loading branch information
pentamassiv committed Oct 25, 2023
1 parent 31ff8db commit 2f428b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/linux/wayland.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ impl Con {
///
/// # Errors
/// TODO
fn send_key_event(&mut self, keycode: Keycode, direction: Direction) -> InputResult<()> {
fn send_key_event(&self, keycode: Keycode, direction: Direction) -> InputResult<()> {
if let Some(vk) = &self.virtual_keyboard {
is_alive(vk)?;
let time = self.get_time();
Expand All @@ -210,7 +210,7 @@ impl Con {

/// Sends a modifier event with the updated bitflag of the modifiers to the
/// compositor
fn send_modifier_event(&mut self, modifiers: ModifierBitflag) -> InputResult<()> {
fn send_modifier_event(&self, modifiers: ModifierBitflag) -> InputResult<()> {
if let Some(vk) = &self.virtual_keyboard {
is_alive(vk)?;
trace!("vk.modifiers({modifiers}, 0, 0, 0)");
Expand Down

0 comments on commit 2f428b9

Please sign in to comment.