summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2010-11-20 11:37:23 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2010-11-20 11:37:23 +0800
commitbdcf06e31bef6eb3b8bb6c4fcdabcbd92fef7980 (patch)
tree26473c104d21e20a2c99c50f872bcaf77b8dfd17
parentc4092f1170c82727b52e7ea95447a0c90b02fe5d (diff)
downloadextrawm-bdcf06e31bef6eb3b8bb6c4fcdabcbd92fef7980.tar.gz
extrawm-bdcf06e31bef6eb3b8bb6c4fcdabcbd92fef7980.tar.bz2
Remove demanding attention windows from the list if they are destroyed
-rw-r--r--src/extrawm.cpp5
-rw-r--r--src/extrawm.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/extrawm.cpp b/src/extrawm.cpp
index ad81e99..694fc16 100644
--- a/src/extrawm.cpp
+++ b/src/extrawm.cpp
@@ -281,6 +281,11 @@ ExtraWMWindow::ExtraWMWindow (CompWindow *window) :
WindowInterface::setHandler (window);
}
+ExtraWMWindow::~ExtraWMWindow ()
+{
+ ExtraWMScreen::get (screen)->removeAttentionWindow (window);
+}
+
bool
ExtraWMPluginVTable::init ()
{
diff --git a/src/extrawm.h b/src/extrawm.h
index 6b4688e..fa02ddd 100644
--- a/src/extrawm.h
+++ b/src/extrawm.h
@@ -93,6 +93,7 @@ class ExtraWMWindow :
public:
ExtraWMWindow (CompWindow *);
+ ~ExtraWMWindow ();
CompWindow *window;