diff options
| author | Kunal Mohan <kunalmohan99@gmail.com> | 2021-05-12 20:16:56 +0530 |
|---|---|---|
| committer | Kunal Mohan <kunalmohan99@gmail.com> | 2021-05-15 22:14:34 +0530 |
| commit | c5675e965b9edede26cd26f4658c01ae29b7f2cb (patch) | |
| tree | c298a01bc12b6e69e9285784024406a8daef6926 /src/common/input | |
| parent | Fix memory overflow error and add panic hook for server (diff) | |
| download | sl0ppij-c5675e965b9edede26cd26f4658c01ae29b7f2cb.tar.gz sl0ppij-c5675e965b9edede26cd26f4658c01ae29b7f2cb.tar.xz sl0ppij-c5675e965b9edede26cd26f4658c01ae29b7f2cb.zip | |
Use ClientToServerMsg and ServerToClientMsg for IPC
Diffstat (limited to 'src/common/input')
| -rw-r--r-- | src/common/input/handler.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/input/handler.rs b/src/common/input/handler.rs index b2f4d0a3..4ac2cf83 100644 --- a/src/common/input/handler.rs +++ b/src/common/input/handler.rs @@ -4,10 +4,10 @@ use super::actions::Action; use super::keybinds::Keybinds; use crate::client::ClientInstruction; use crate::common::input::config::Config; +use crate::common::ipc::ClientToServerMsg; use crate::common::thread_bus::{SenderWithContext, OPENCALLS}; use crate::errors::ContextType; use crate::os_input_output::ClientOsApi; -use crate::server::ServerInstruction; use crate::CommandIsExecuting; use termion::input::{TermRead, TermReadEventsAndRaw}; @@ -139,7 +139,7 @@ impl InputHandler { Action::SwitchToMode(mode) => { self.mode = mode; self.os_input - .send_to_server(ServerInstruction::Action(action)); + .send_to_server(ClientToServerMsg::Action(action)); } Action::CloseFocus | Action::NewPane(_) @@ -151,13 +151,13 @@ impl InputHandler { | Action::MoveFocusOrTab(_) => { self.command_is_executing.blocking_input_thread(); self.os_input - .send_to_server(ServerInstruction::Action(action)); + .send_to_server(ClientToServerMsg::Action(action)); self.command_is_executing .wait_until_input_thread_is_unblocked(); } _ => self .os_input - .send_to_server(ServerInstruction::Action(action)), + .send_to_server(ClientToServerMsg::Action(action)), } should_break |
