Skip to content

Commit

Permalink
Fix deserialization in input_capture portal (#199)
Browse files Browse the repository at this point in the history
* fix Deserialize -> DeserializeDict

* fix Deserialize -> DeserializeDict
  • Loading branch information
feschber authored and bilelmoussaoui committed Mar 16, 2024
1 parent a4fd52e commit d3ec3d9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/desktop/input_capture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl Disabled {
}
}

#[derive(Debug, Deserialize, Type)]
#[derive(Debug, DeserializeDict, Type)]
#[zvariant(signature = "dict")]
struct DeactivatedOptions {
activation_id: u32,
Expand All @@ -107,9 +107,8 @@ impl Deactivated {
}
}

#[derive(Debug, Deserialize, Type)]
#[derive(Debug, DeserializeDict, Type)]
#[zvariant(signature = "dict")]

struct ActivatedOptions {
activation_id: u32,
cursor_position: (f32, f32),
Expand Down Expand Up @@ -143,7 +142,7 @@ impl Activated {
}
}

#[derive(Debug, Deserialize, Type)]
#[derive(Debug, DeserializeDict, Type)]
#[zvariant(signature = "dict")]
struct ZonesChangedOptions {
zone_set: u32,
Expand Down

0 comments on commit d3ec3d9

Please sign in to comment.