1
0
Fork 0
forked from wry/wry

wp-color-management-v1: allocate description ids linearly

This commit is contained in:
Julian Orth 2025-04-22 16:13:49 +02:00
parent 401e8bb0be
commit c9b0e86bf5
6 changed files with 10 additions and 30 deletions

View file

@ -45,7 +45,7 @@ impl WpColorManagementSurfaceFeedbackV1 {
pub fn send_preferred_changed(&self, cd: &ColorDescription) {
self.client.event(PreferredChanged {
self_id: self.id,
identity: cd.id.raw(),
identity: cd.id.raw() as u32,
});
}
}

View file

@ -31,7 +31,7 @@ impl WpImageDescriptionV1 {
pub fn send_ready(&self) {
self.client.event(Ready {
self_id: self.id,
identity: self.description.as_ref().unwrap().id.raw(),
identity: self.description.as_ref().unwrap().id.raw() as u32,
});
}
}