1
0
Fork 0
forked from wry/wry

portal: implement workspace capture

This commit is contained in:
Julian Orth 2024-04-20 13:48:12 +02:00
parent c6864a6d85
commit 33a0a40857
23 changed files with 518 additions and 50 deletions

View file

@ -83,7 +83,10 @@ use {
thiserror::Error,
uapi::OwnedFd,
};
pub use {event_handling::NodeSeatState, pointer_owner::ToplevelSelector};
pub use {
event_handling::NodeSeatState,
pointer_owner::{ToplevelSelector, WorkspaceSelector},
};
pub const POINTER: u32 = 1;
const KEYBOARD: u32 = 2;
@ -1153,10 +1156,13 @@ impl WlSeatGlobal {
self.forward.set(forward);
}
#[allow(dead_code)]
pub fn select_toplevel(self: &Rc<Self>, selector: impl ToplevelSelector) {
self.pointer_owner.select_toplevel(self, selector);
}
pub fn select_workspace(self: &Rc<Self>, selector: impl WorkspaceSelector) {
self.pointer_owner.select_workspace(self, selector);
}
}
global_base!(WlSeatGlobal, WlSeat, WlSeatError);