Added window animation rules

This commit is contained in:
vaxerski
2022-05-15 14:18:31 +02:00
parent cba4693d39
commit d7ad80e6a2
5 changed files with 85 additions and 33 deletions

View File

@@ -95,6 +95,9 @@ void Events::listener_mapWindow(void* owner, void* data) {
} catch(std::exception& e) {
Debug::log(ERR, "Opacity rule \"%s\" failed with: %s", r.szRule.c_str(), e.what());
}
} else if (r.szRule.find("animation") == 0) {
auto STYLE = r.szRule.substr(r.szRule.find_first_of(' ') + 1);
PWINDOW->m_sAdditionalConfigData.animationStyle = STYLE;
}
}