Fix client destruction when there is an InsertMode mode still alive

This commit is contained in:
Maxime Coste 2017-01-22 12:19:23 +00:00
parent 79dd483b7c
commit 66e422e397

View File

@ -55,8 +55,10 @@ Client::~Client()
{
m_window->options().unregister_watcher(*this);
m_window->set_client(nullptr);
// Do not move the selections here, as we need them to be valid
// in order to correctly destroy the input handler
ClientManager::instance().add_free_window(std::move(m_window),
std::move(context().selections()));
context().selections());
}
bool Client::process_pending_inputs()