aboutsummaryrefslogtreecommitdiffstats
path: root/src/window_manager.cpp
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-09-08 20:59:51 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-09-08 20:59:51 +0900
commitb1f017ed5a12ab2dd305133c8c7f28deb3218a69 (patch)
tree1bceea1ded0846baaa02da7f21080a41cb4b7999 /src/window_manager.cpp
parent343b17472d8b6b18e89731961337f04c4033832c (diff)
Add callback function when surface dead
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/window_manager.cpp')
-rw-r--r--src/window_manager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/window_manager.cpp b/src/window_manager.cpp
index acf3b76..6818438 100644
--- a/src/window_manager.cpp
+++ b/src/window_manager.cpp
@@ -172,6 +172,9 @@ int WindowManager::init()
lmcb.surfaceCreated = [&](unsigned pid, unsigned surface){
this->surface_created(surface);
};
+ lmcb.surfaceDestroyed = [&](unsigned surface){
+ this->surface_removed(surface);
+ };
this->lc->init(lmcb);
this->loadOldRoleDb();