summaryrefslogtreecommitdiff
path: root/src/client_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/client_manager.cc')
-rw-r--r--src/client_manager.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client_manager.cc b/src/client_manager.cc
index 6e3fd638..692a1a46 100644
--- a/src/client_manager.cc
+++ b/src/client_manager.cc
@@ -94,18 +94,18 @@ WindowAndSelections ClientManager::get_free_window(Buffer& buffer)
w->forget_timestamp();
WindowAndSelections res = std::move(*it);
m_free_windows.erase(it.base()-1);
+ res.selections.update();
return res;
}
}
return WindowAndSelections{ std::unique_ptr<Window>{new Window{buffer}},
- DynamicSelectionList{buffer,
- { Selection{ {}, {} } } } };
+ SelectionList{ buffer, Selection{} } };
}
void ClientManager::add_free_window(std::unique_ptr<Window>&& window, SelectionList selections)
{
Buffer& buffer = window->buffer();
- m_free_windows.push_back({ std::move(window), DynamicSelectionList{ buffer, std::move(selections) } });
+ m_free_windows.push_back({ std::move(window), SelectionList{ std::move(selections) }, buffer.timestamp() });
}
void ClientManager::ensure_no_client_uses_buffer(Buffer& buffer)