summaryrefslogtreecommitdiff
path: root/src/window.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-10-26 18:51:25 +0100
committerMaxime Coste <frrrwww@gmail.com>2013-10-26 18:51:25 +0100
commit90d499b94de727953c49556811f3c1a39930d494 (patch)
tree1faf8777dfcff881b9a3bdea29b2cbde50cf7e12 /src/window.cc
parent29ab42149cf0f5c9cb629878cb29417fd9f298cc (diff)
Add a WinClose hook
Diffstat (limited to 'src/window.cc')
-rw-r--r--src/window.cc2
1 files changed, 2 insertions, 0 deletions
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);
}