1
0
Fork 0
forked from wry/wry

Merge pull request #687 from mahkoh/jorth/subsurface-tray-item

wl_subsurface: implement SurfaceExt::tray_item
This commit is contained in:
mahkoh 2025-12-14 17:57:50 +01:00 committed by GitHub
commit 8553109dda
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)]