Skip to content

Commit

Permalink
update wrong signal documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
feschber committed Mar 25, 2024
1 parent 54e8e13 commit 12a7616
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/desktop/input_capture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ struct DeactivatedOptions {
activation_id: u32,
}

/// Indicates that an input capturing session was disabled.
/// Indicates that an input capturing session was deactivated.
#[derive(Debug, Deserialize, Type)]
#[zvariant(signature = "(oa{sv})")]
pub struct Deactivated(OwnedObjectPath, DeactivatedOptions);
Expand All @@ -382,7 +382,7 @@ struct ActivatedOptions {
barrier_id: BarrierID,
}

/// Indicates that an input capturing session was disabled.
/// Indicates that an input capturing session was activated.
#[derive(Debug, Deserialize, Type)]
#[zvariant(signature = "(oa{sv})")]
pub struct Activated(OwnedObjectPath, ActivatedOptions);
Expand Down Expand Up @@ -415,7 +415,7 @@ struct ZonesChangedOptions {
zone_set: u32,
}

/// Indicates that an input capturing session was disabled.
/// Indicates that zones available to this session changed.
#[derive(Debug, Deserialize, Type)]
#[zvariant(signature = "(oa{sv})")]
pub struct ZonesChanged(OwnedObjectPath, ZonesChangedOptions);
Expand Down Expand Up @@ -656,8 +656,8 @@ impl<'a> InputCapture<'a> {
self.0.signal("Disabled").await
}

/// Signal emitted when the application will no longer receive captured
/// events.
/// Signal emitted when input capture starts and
/// input events are about to be sent to the application.
///
/// # Specifications
///
Expand All @@ -667,8 +667,8 @@ impl<'a> InputCapture<'a> {
self.0.signal("Activated").await
}

/// Signal emitted when the application will no longer receive captured
/// events.
/// Signal emitted when input capture stopped and input events
/// are no longer sent to the application.
///
/// # Specifications
///
Expand All @@ -678,8 +678,7 @@ impl<'a> InputCapture<'a> {
self.0.signal("Deactivated").await
}

/// Signal emitted when the application will no longer receive captured
/// events.
/// Signal emitted when the set of zones available to this session change.
///
/// # Specifications
///
Expand Down

0 comments on commit 12a7616

Please sign in to comment.