Merge pull request #687 from mahkoh/jorth/subsurface-tray-item
wl_subsurface: implement SurfaceExt::tray_item
This commit is contained in:
commit
8553109dda
1 changed files with 5 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ use {
|
||||||
client::{Client, ClientError},
|
client::{Client, ClientError},
|
||||||
ifs::wl_surface::{
|
ifs::wl_surface::{
|
||||||
AttachedSubsurfaceState, CommitAction, PendingState, StackElement, SurfaceExt,
|
AttachedSubsurfaceState, CommitAction, PendingState, StackElement, SurfaceExt,
|
||||||
SurfaceRole, WlSurface, WlSurfaceError, WlSurfaceId,
|
SurfaceRole, WlSurface, WlSurfaceError, WlSurfaceId, tray::TrayItemId,
|
||||||
},
|
},
|
||||||
leaks::Tracker,
|
leaks::Tracker,
|
||||||
object::{Object, Version},
|
object::{Object, Version},
|
||||||
|
|
@ -431,6 +431,10 @@ impl SurfaceExt for WlSubsurface {
|
||||||
})?;
|
})?;
|
||||||
surface.pending.borrow_mut().consume_child(child, consume)
|
surface.pending.borrow_mut().consume_child(child, consume)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn tray_item(self: Rc<Self>) -> Option<TrayItemId> {
|
||||||
|
self.surface.node_tray_item()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Error)]
|
#[derive(Debug, Error)]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue