summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-11-05 15:44:58 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-11-05 15:44:58 +0800
commit9ffe98391aa86c990dee58cfb5b1fdea3c6a2b56 (patch)
tree8701bd2dea94a3835f42b47eb65623e752e791ab
parentf3bb91de6ceb81873f06f63874ef5b9cf715d445 (diff)
downloadgroup-9ffe98391aa86c990dee58cfb5b1fdea3c6a2b56.tar.gz
group-9ffe98391aa86c990dee58cfb5b1fdea3c6a2b56.tar.bz2
Check functions in ::select and ::deselect rather than ::checkFunctions since the last approach misses windows that are part of the window group but not in the initial selection
-rw-r--r--src/selection.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/selection.cpp b/src/selection.cpp
index 85f164c..2888828 100644
--- a/src/selection.cpp
+++ b/src/selection.cpp
@@ -144,6 +144,7 @@ Selection::deselect (CompWindow *w)
{
if (size ())
{
+ GroupWindow::get (w)->checkFunctions ();
CompositeWindow::get (w)->addDamage ();
remove (w);
}
@@ -179,6 +180,7 @@ Selection::deselect (GroupSelection *group)
if (gw->mGroup == group)
{
gw->mInSelection = false;
+ gw->checkFunctions ();
gw->cWindow->addDamage ();
continue;
}
@@ -206,6 +208,7 @@ Selection::select (CompWindow *w)
push_back (w);
gw->mInSelection = true;
+ gw->checkFunctions ();
gw->cWindow->addDamage ();
}
@@ -372,8 +375,6 @@ Selection::checkWindow (CompWindow *w)
select (w);
}
}
-
- GroupWindow::get (w)->checkFunctions ();
}
/*