BugFix WorkspaceWindow toggle

This commit is contained in:
Bruno Herbelin
2022-12-11 13:26:28 +01:00
parent cde0e74a2e
commit 8e6aaf29e0

View File

@@ -1972,10 +1972,10 @@ WorkspaceWindow::WorkspaceWindow(const char* name): name_(name), impl_(nullptr)
void WorkspaceWindow::toggleClearRestoreWorkspace()
{
// do not toggle if an animation is ongoing
// stop animations that are ongoing
for(auto it = windows_.cbegin(); it != windows_.cend(); ++it) {
if ( (*it)->impl_ && (*it)->impl_->animation )
return;
(*it)->impl_->animation = false;
}
// toggle