Skip to content

Commit

Permalink
fix reanimating nonhidden layers
Browse files Browse the repository at this point in the history
  • Loading branch information
KZDKM committed Apr 16, 2024
1 parent 4e85b63 commit 1859942
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"ignoreFailures": true
},
],
"preLaunchTask": "make_all", // Task to compile your C++ project, adjust this according to your setup
//"preLaunchTask": "make_all", // Task to compile your C++ project, adjust this according to your setup
"stopAtEntry": false
}
]
Expand Down
4 changes: 2 additions & 2 deletions src/Overview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ void CHyprspaceWidget::hide() {

// restore layer state
for (auto& ls : owner->m_aLayerSurfaceLayers[ZWLR_LAYER_SHELL_V1_LAYER_TOP]) {
if (!ls->readyToDelete && ls->mapped) {
if (!ls->readyToDelete && ls->mapped && ls->fadingOut) {
ls->fadingOut = false;
ls->startAnimation(true);
}
}
for (auto& ls : owner->m_aLayerSurfaceLayers[ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY]) {
if (!ls->readyToDelete && ls->mapped) {
if (!ls->readyToDelete && ls->mapped && ls->fadingOut) {
ls->fadingOut = false;
ls->startAnimation(true);
}
Expand Down

0 comments on commit 1859942

Please sign in to comment.