diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-09-02 08:53:50 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-09-01 23:47:19 -0700 |
| commit | 332af8b062d93aa542c639d663199fde568172f7 (patch) | |
| tree | 66fe6d8babbfaaf0723d6f186d46abfb48a64d71 /niri-ipc | |
| parent | b7901579d586b6c68119ef65bc184a7369492791 (diff) | |
| download | niri-332af8b062d93aa542c639d663199fde568172f7.tar.gz niri-332af8b062d93aa542c639d663199fde568172f7.tar.bz2 niri-332af8b062d93aa542c639d663199fde568172f7.zip | |
Rearrange some CLI and IPC enum values
Diffstat (limited to 'niri-ipc')
| -rw-r--r-- | niri-ipc/src/lib.rs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/niri-ipc/src/lib.rs b/niri-ipc/src/lib.rs index e6058ca1..97f67ba7 100644 --- a/niri-ipc/src/lib.rs +++ b/niri-ipc/src/lib.rs @@ -19,6 +19,12 @@ pub enum Request { Version, /// Request information about connected outputs. Outputs, + /// Request information about workspaces. + Workspaces, + /// Request information about the configured keyboard layouts. + KeyboardLayouts, + /// Request information about the focused output. + FocusedOutput, /// Request information about the focused window. FocusedWindow, /// Perform an action. @@ -34,12 +40,6 @@ pub enum Request { /// Configuration to apply. action: OutputAction, }, - /// Request information about workspaces. - Workspaces, - /// Request information about the focused output. - FocusedOutput, - /// Request information about the keyboard layout. - KeyboardLayouts, /// Start continuously receiving events from the compositor. /// /// The compositor should reply with `Reply::Ok(Response::Handled)`, then continuously send @@ -71,16 +71,16 @@ pub enum Response { /// /// Map from connector name to output info. Outputs(HashMap<String, Output>), - /// Information about the focused window. - FocusedWindow(Option<Window>), - /// Output configuration change result. - OutputConfigChanged(OutputConfigChanged), /// Information about workspaces. Workspaces(Vec<Workspace>), - /// Information about the focused output. - FocusedOutput(Option<Output>), /// Information about the keyboard layout. KeyboardLayouts(KeyboardLayouts), + /// Information about the focused output. + FocusedOutput(Option<Output>), + /// Information about the focused window. + FocusedWindow(Option<Window>), + /// Output configuration change result. + OutputConfigChanged(OutputConfigChanged), } /// Actions that niri can perform. |
