feat(status-area): provide activation token on menu item activation

This commit is contained in:
Ashley Wulber 2025-08-05 12:14:53 -04:00 committed by Ashley Wulber
parent 1d3d869f4a
commit a5d813dc9b
3 changed files with 72 additions and 5 deletions

View file

@ -113,6 +113,10 @@ impl StatusNotifierItem {
pub fn menu_proxy(&self) -> &DBusMenuProxy<'static> {
&self.menu_proxy
}
pub fn item_proxy(&self) -> &StatusNotifierItemProxy<'static> {
&self.item_proxy
}
}
async fn get_layout(menu_proxy: DBusMenuProxy<'static>) -> Result<Layout, String> {
@ -136,6 +140,8 @@ pub trait StatusNotifierItem {
#[zbus(signal)]
fn new_icon(&self) -> zbus::Result<()>;
fn provide_xdg_activation_token(&self, token: String) -> zbus::Result<()>;
}
#[derive(Clone, Debug)]