From 90d499b94de727953c49556811f3c1a39930d494 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 26 Oct 2013 18:51:25 +0100 Subject: Add a WinClose hook --- src/window.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/window.cc') diff --git a/src/window.cc b/src/window.cc index 2fdec0f8..5bf9cede 100644 --- a/src/window.cc +++ b/src/window.cc @@ -36,6 +36,8 @@ Window::Window(Buffer& buffer) Window::~Window() { + Context hook_context{*this}; + m_hooks.run_hook("WinClose", buffer().name(), hook_context); m_options.unregister_watcher(*this); } -- cgit v1.2.3