From d7ad80e6a2ee25bdc524c0012937d73725f5ad2f Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 15 May 2022 14:18:31 +0200 Subject: Added window animation rules --- src/events/Windows.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/events/Windows.cpp') diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 0bbe1629..a6ae6c5d 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -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; } } -- cgit v1.2.3