From bc2d79d302fae8b0004f8ecb2ce0c7ef94259d05 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 3 Nov 2016 19:09:52 +0000 Subject: [PATCH] Run WinDisplay hook on creation of clients Fixes #913 --- src/client.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client.cc b/src/client.cc index 38684524..6019f391 100644 --- a/src/client.cc +++ b/src/client.cc @@ -38,6 +38,9 @@ Client::Client(std::unique_ptr&& ui, m_ui->set_ui_options(m_window->options()["ui_options"].get()); m_ui->set_input_callback([this](EventMode mode) { handle_available_input(mode); }); + + m_window->hooks().run_hook("WinDisplay", m_window->buffer().name(), context()); + force_redraw(); }