mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-14 19:59: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()
|
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)
|
if (clear_workspace_enabled)
|
||||||
restoreWorkspace();
|
restoreWorkspace();
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user