wl_output: implement PartialEq
This commit is contained in:
parent
ba6943b77f
commit
54233cba23
1 changed files with 6 additions and 0 deletions
|
|
@ -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>>>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue