1
0
Fork 0
forked from wry/wry

all: add (Clone)Cell::is_some and is_none

This commit is contained in:
Julian Orth 2024-03-02 18:09:40 +01:00
parent 7a67784502
commit 54d93f84da
32 changed files with 98 additions and 62 deletions

View file

@ -432,7 +432,7 @@ impl WlSeatGlobal {
}
fn maybe_constrain(&self, surface: &WlSurface, x: Fixed, y: Fixed) {
if self.constraint.get().is_some() {
if self.constraint.is_some() {
return;
}
let candidate = match surface.constraints.get(&self.id) {
@ -543,8 +543,7 @@ impl WlSeatGlobal {
}
pub fn get_mono(&self) -> Option<bool> {
self.kb_parent_container()
.map(|c| c.mono_child.get().is_some())
self.kb_parent_container().map(|c| c.mono_child.is_some())
}
pub fn get_split(&self) -> Option<ContainerSplit> {