Fix crash updating window decorations on unmapped windows

This commit is contained in:
outfoxxed 2023-04-27 10:38:21 -07:00
parent c679d16f5a
commit 4c95fc5737
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E

View file

@ -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) {