mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-25 23:13:19 +03:00
Compare commits
1 Commits
macos-inpu
...
fix-clippy
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
563e39c383 |
@@ -390,9 +390,9 @@ fn create_event_tap<'a>(
|
|||||||
|
|
||||||
if let Some(pos) = pos {
|
if let Some(pos) = pos {
|
||||||
res_events.iter().for_each(|e| {
|
res_events.iter().for_each(|e| {
|
||||||
// error must be ignored, since the event channel
|
event_tx
|
||||||
// may already be closed when the InputCapture instance is dropped.
|
.blocking_send((pos, *e))
|
||||||
let _ = event_tx.blocking_send((pos, *e));
|
.expect("Failed to send event");
|
||||||
});
|
});
|
||||||
// Returning None should stop the event from being processed
|
// Returning None should stop the event from being processed
|
||||||
// but core fundation still returns the event
|
// but core fundation still returns the event
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ use super::KeyObject;
|
|||||||
|
|
||||||
glib::wrapper! {
|
glib::wrapper! {
|
||||||
pub struct KeyRow(ObjectSubclass<imp::KeyRow>)
|
pub struct KeyRow(ObjectSubclass<imp::KeyRow>)
|
||||||
@extends gtk::ListBoxRow, gtk::Widget, adw::PreferencesRow, adw::ActionRow,
|
@extends gtk::ListBoxRow, gtk::Widget, adw::PreferencesRow, adw::ExpanderRow,
|
||||||
@implements gtk::Accessible, gtk::Actionable, gtk::Buildable, gtk::ConstraintTarget;
|
@implements gtk::Accessible, gtk::Actionable, gtk::Buildable, gtk::ConstraintTarget;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user