config: add move-to-output action
This commit is contained in:
parent
2a517f437a
commit
fecfd24ba0
15 changed files with 357 additions and 76 deletions
|
|
@ -8,7 +8,8 @@ use {
|
|||
input::{acceleration::AccelProfile, capability::Capability},
|
||||
keyboard::Keymap,
|
||||
Axis, Direction, ModifiedKeySym, Workspace,
|
||||
_private::DEFAULT_SEAT_NAME,
|
||||
_private::{ipc::WorkspaceSource, DEFAULT_SEAT_NAME},
|
||||
video::Connector,
|
||||
},
|
||||
serde::{Deserialize, Serialize},
|
||||
std::time::Duration,
|
||||
|
|
@ -319,6 +320,11 @@ impl Seat {
|
|||
pub fn disable_pointer_constraint(self) {
|
||||
get!().disable_pointer_constraint(self)
|
||||
}
|
||||
|
||||
/// Moves the currently focused workspace to another output.
|
||||
pub fn move_to_output(self, connector: Connector) {
|
||||
get!().move_to_output(WorkspaceSource::Seat(self), connector);
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns all seats.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue