diff options
| author | Kunal Mohan <44079328+kunalmohan@users.noreply.github.com> | 2021-05-15 23:03:38 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-15 23:03:38 +0530 |
| commit | 4c198b42431e37542da60f9551f3e6d19f84bd18 (patch) | |
| tree | ce50f8ab9e6e514e8503b2a52a37f0b640af236a /src/common/input | |
| parent | docs(changelog): Remove unused import (diff) | |
| parent | clean and exit on window close (diff) | |
| download | sl0ppij-4c198b42431e37542da60f9551f3e6d19f84bd18.tar.gz sl0ppij-4c198b42431e37542da60f9551f3e6d19f84bd18.tar.xz sl0ppij-4c198b42431e37542da60f9551f3e6d19f84bd18.zip | |
Merge pull request #499 from zellij-org/multiprocess
Switch to a multiprocess client-sever model
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 |
