all: add (Clone)Cell::is_some and is_none
This commit is contained in:
parent
7a67784502
commit
54d93f84da
32 changed files with 98 additions and 62 deletions
|
|
@ -56,7 +56,7 @@ impl XwaylandShellV1 {
|
|||
let req: GetXwaylandSurface = self.client.parse(self, parser)?;
|
||||
let surface = self.client.lookup(req.surface)?;
|
||||
let xsurface = surface.get_xsurface()?;
|
||||
if xsurface.xwayland_surface.get().is_some() {
|
||||
if xsurface.xwayland_surface.is_some() {
|
||||
return Err(XwaylandShellV1Error::AlreadyAttached(surface.id));
|
||||
}
|
||||
let xws = Rc::new(XwaylandSurfaceV1 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue