diff options
author | Sam Spilsbury <smspillaz@gmail.com> | 2010-11-05 15:44:58 +0800 |
---|---|---|
committer | Sam Spilsbury <smspillaz@gmail.com> | 2010-11-05 15:44:58 +0800 |
commit | 9ffe98391aa86c990dee58cfb5b1fdea3c6a2b56 (patch) | |
tree | 8701bd2dea94a3835f42b47eb65623e752e791ab | |
parent | f3bb91de6ceb81873f06f63874ef5b9cf715d445 (diff) | |
download | group-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.cpp | 5 |
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 (); } /* |