feat: activation of apps

This commit is contained in:
Ashley Wulber 2022-12-13 19:58:00 -05:00 committed by Ashley Wulber
parent 8223c76361
commit 86ed2d4e31
5 changed files with 185 additions and 84 deletions

View file

@ -2,15 +2,15 @@
//!
//! This code was generated by `zbus-xmlgen` `2.0.1` from DBus introspection data.
//! Source: `Interface '/org/freedesktop/UPower/KbdBacklight' from service 'org.freedesktop.UPower' on system bus`.
use cctk::sctk::reexports::client::protocol::wl_seat::WlSeat;
use cctk::toplevel_info::ToplevelInfo;
use cosmic::iced;
use cosmic::iced::subscription;
use cosmic_protocols::toplevel_info::v1::client::zcosmic_toplevel_handle_v1::ZcosmicToplevelHandleV1;
use futures::{
channel::mpsc::{unbounded, UnboundedReceiver},
StreamExt,
};
use iced::subscription;
use std::{fmt::Debug, hash::Hash};
use crate::toplevel_handler::toplevel_handler;
@ -65,7 +65,7 @@ pub enum ToplevelUpdate {
#[derive(Debug, Clone)]
pub enum ToplevelRequest {
Activate(ZcosmicToplevelHandleV1),
Activate(ZcosmicToplevelHandleV1, WlSeat),
Quit(ZcosmicToplevelHandleV1),
Exit,
}