diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-09-12 23:39:34 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-09-12 23:39:34 +0200 |
| commit | ac7e437730ecbe32f9e4e168a3ee4a7b7f3cd761 (patch) | |
| tree | cb5b0e413373ed209d092d476f0abf4a0eeb8209 /src/input_handler.cc | |
| parent | 916a0cb52e8637d0e6ec456363ef6412142945da (diff) | |
Move Client responsibilities to InputHandler
InputHandler owns it's UserInterface, and is directly stored by the ClientManager.
Diffstat (limited to 'src/input_handler.cc')
| -rw-r--r-- | src/input_handler.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc index cd048482..407324eb 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -914,8 +914,8 @@ InputMode& InputMode::reset_normal_mode() } -InputHandler::InputHandler(UserInterface& ui) - : m_context(*this, ui), m_mode(new InputModes::Normal(*this)) +InputHandler::InputHandler(std::unique_ptr<UserInterface>&& ui, Editor& editor, String name) + : m_ui(std::move(ui)), m_context(*this, editor), m_mode(new InputModes::Normal(*this)), m_name(name) { } |
