config: add move-to-output action
This commit is contained in:
parent
2a517f437a
commit
fecfd24ba0
15 changed files with 357 additions and 76 deletions
|
|
@ -4,7 +4,7 @@ use {
|
|||
crate::{
|
||||
_private::{
|
||||
bincode_ops,
|
||||
ipc::{ClientMessage, InitMessage, Response, ServerMessage},
|
||||
ipc::{ClientMessage, InitMessage, Response, ServerMessage, WorkspaceSource},
|
||||
logging, Config, ConfigEntry, ConfigEntryGen, PollableId, WireMode, VERSION,
|
||||
},
|
||||
exec::Command,
|
||||
|
|
@ -421,6 +421,13 @@ impl Client {
|
|||
self.send(&ClientMessage::DisablePointerConstraint { seat });
|
||||
}
|
||||
|
||||
pub fn move_to_output(&self, workspace: WorkspaceSource, connector: Connector) {
|
||||
self.send(&ClientMessage::MoveToOutput {
|
||||
workspace,
|
||||
connector,
|
||||
});
|
||||
}
|
||||
|
||||
pub fn set_fullscreen(&self, seat: Seat, fullscreen: bool) {
|
||||
self.send(&ClientMessage::SetFullscreen { seat, fullscreen });
|
||||
}
|
||||
|
|
|
|||
|
|
@ -424,6 +424,16 @@ pub enum ClientMessage<'a> {
|
|||
SetIdle {
|
||||
timeout: Duration,
|
||||
},
|
||||
MoveToOutput {
|
||||
workspace: WorkspaceSource,
|
||||
connector: Connector,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
pub enum WorkspaceSource {
|
||||
Seat(Seat),
|
||||
Explicit(Workspace),
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue