mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-14 11:49:59 +01:00
BugFix repeated toggle clear workspace
This commit is contained in:
@@ -1938,6 +1938,13 @@ WorkspaceWindow::WorkspaceWindow(const char* name): name_(name), impl_(nullptr)
|
||||
|
||||
void WorkspaceWindow::toggleClearRestoreWorkspace()
|
||||
{
|
||||
// repeated call should ensure all animations are done
|
||||
for(auto it = windows_.cbegin(); it != windows_.cend(); ++it) {
|
||||
if ( (*it)->impl_ && (*it)->impl_->animation )
|
||||
return;
|
||||
}
|
||||
|
||||
// toggle
|
||||
if (clear_workspace_enabled)
|
||||
restoreWorkspace();
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user