use crate::core::window::Id as SurfaceId; use iced_runtime::{ self, Action, Task, platform_specific::{self, wayland}, task, }; pub fn request_token( app_id: Option, window: Option, ) -> Task> { task::oneshot(|channel| { Action::PlatformSpecific(platform_specific::Action::Wayland( wayland::Action::Activation( wayland::activation::Action::RequestToken { app_id, window, channel, }, ), )) }) } pub fn activate(window: SurfaceId, token: String) -> Task { task::effect(Action::PlatformSpecific( platform_specific::Action::Wayland(wayland::Action::Activation( wayland::activation::Action::Activate { window, token }, )), )) }