Skip to content

Commit

Permalink
removing warn logging on motion events when there is no held mouse bi…
Browse files Browse the repository at this point in the history
…nding
  • Loading branch information
sminez committed Jun 25, 2024
1 parent aa3efe5 commit 5d87a6b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/core/handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use crate::{
},
Result,
};
use tracing::{error, info, trace, warn};
use tracing::{error, info, trace};

// Currently no client messages are handled by default (see the ewmh extension for some examples of messages
// that are handled when that is enabled)
Expand Down Expand Up @@ -84,10 +84,7 @@ pub(crate) fn motion_event<X: XConn>(
) -> Result<()> {
let held_state = match state.held_mouse_state.as_ref() {
Some(state) => state,
None => {
warn!("got motion notify event without known held state");
return Ok(());
}
None => return Ok(()), // motion without us holding anything
};

if let Some(action) = bindings.get_mut(held_state) {
Expand Down

0 comments on commit 5d87a6b

Please sign in to comment.