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