portal: implement workspace capture
This commit is contained in:
parent
c6864a6d85
commit
33a0a40857
23 changed files with 518 additions and 50 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue