diff options
Diffstat (limited to 'src/conn_info')
-rw-r--r-- | src/conn_info/mod.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/conn_info/mod.rs b/src/conn_info/mod.rs index ce7934b..ac257d4 100644 --- a/src/conn_info/mod.rs +++ b/src/conn_info/mod.rs @@ -186,7 +186,7 @@ impl<'a> Connection<'a> { property: self.atoms.wm_protocols, r#type: x::ATOM_ATOM, long_offset: 0, - long_length: 100000, + long_length: 100_000, })) else { return; }; @@ -198,8 +198,7 @@ impl<'a> Connection<'a> { let supported = protocols .value::<u32>() .iter() - .find(|a| **a == event.resource_id()) - .is_some(); + .any(|a| *a == event.resource_id()); if supported { self.send_request(&SendEvent { |