mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-15 18:53:40 +01:00
Fix crash updating window decorations on unmapped windows
This commit is contained in:
parent
c679d16f5a
commit
4c95fc5737
1 changed files with 2 additions and 1 deletions
|
@ -358,7 +358,8 @@ void Hy3Node::swapData(Hy3Node& a, Hy3Node& b) {
|
|||
void Hy3Node::updateDecos() {
|
||||
switch (this->data.type) {
|
||||
case Hy3NodeData::Window:
|
||||
g_pCompositor->updateWindowAnimatedDecorationValues(this->data.as_window);
|
||||
if (this->data.as_window->m_bIsMapped)
|
||||
g_pCompositor->updateWindowAnimatedDecorationValues(this->data.as_window);
|
||||
break;
|
||||
case Hy3NodeData::Group:
|
||||
for (auto* child: this->data.as_group.children) {
|
||||
|
|
Loading…
Add table
Reference in a new issue