1
0
Fork 0
forked from wry/wry

wl_output: implement PartialEq

This commit is contained in:
Julian Orth 2026-03-07 14:06:56 +01:00
parent ba6943b77f
commit 54233cba23

View file

@ -94,6 +94,12 @@ pub struct WlOutputGlobal {
CopyHashMap<(ClientId, WpColorManagementOutputV1Id), Rc<WpColorManagementOutputV1>>,
}
impl PartialEq for WlOutputGlobal {
fn eq(&self, other: &Self) -> bool {
self.name == other.name
}
}
#[derive(Default)]
pub struct OutputGlobalOpt {
pub global: CloneCell<Option<Rc<WlOutputGlobal>>>,