first pass of merging in warp (doesn't build)
This commit is contained in:
@@ -4,7 +4,7 @@ mod x11;
|
||||
|
||||
use async_trait::async_trait;
|
||||
|
||||
use crate::{Action, ActionResult, Options};
|
||||
use crate::{ActionResult, Options, TargetedAction};
|
||||
|
||||
/// Returns true if a Wayland environment is available.
|
||||
fn is_wayland_available() -> bool {
|
||||
@@ -24,6 +24,12 @@ pub fn is_supported_on_current_platform() -> bool {
|
||||
is_wayland_available() || is_x11_available()
|
||||
}
|
||||
|
||||
/// Reports whether background, per-window control is available. The Linux input stack drives the
|
||||
/// whole screen / frontmost application, so per-window background control is unsupported.
|
||||
pub fn background_supported() -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
pub struct Actor {
|
||||
inner: ActorInner,
|
||||
}
|
||||
@@ -77,7 +83,7 @@ impl super::Actor for Actor {
|
||||
|
||||
async fn perform_actions(
|
||||
&mut self,
|
||||
actions: &[Action],
|
||||
actions: &[TargetedAction],
|
||||
options: Options,
|
||||
) -> Result<ActionResult, String> {
|
||||
match &mut self.inner {
|
||||
|
||||
Reference in New Issue
Block a user