diff options
| author | Darksome <dev@darkso.me> | 2022-07-16 15:35:47 +0300 |
|---|---|---|
| committer | Darksome <dev@darkso.me> | 2022-07-16 15:35:47 +0300 |
| commit | 68cfc1a496f556f360c032651b75d33ddb576517 (patch) | |
| tree | 59c36fae97059eef50f644e6a2c6b9c15a635f18 /src/Window.cpp | |
| parent | 08319dd1f5185e1938df86a0a0a61f06b30026f4 (diff) | |
| parent | 4f9be67298d21c3039278f64ea49feb21eaca9ed (diff) | |
Merge branch 'main' of github.com:xDarksome/Hyprland
Diffstat (limited to 'src/Window.cpp')
| -rw-r--r-- | src/Window.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Window.cpp b/src/Window.cpp index 8c8cd147..5568d082 100644 --- a/src/Window.cpp +++ b/src/Window.cpp @@ -8,6 +8,7 @@ CWindow::CWindow() { m_cRealBorderColor.create(AVARTYPE_COLOR, &g_pConfigManager->getConfigValuePtr("animations:borders_speed")->floatValue, &g_pConfigManager->getConfigValuePtr("animations:borders")->intValue, &g_pConfigManager->getConfigValuePtr("animations:borders_curve")->strValue, (void*)this, AVARDAMAGE_BORDER); m_fAlpha.create(AVARTYPE_FLOAT, &g_pConfigManager->getConfigValuePtr("animations:fadein_speed")->floatValue, &g_pConfigManager->getConfigValuePtr("animations:fadein")->intValue, &g_pConfigManager->getConfigValuePtr("animations:fadein_curve")->strValue, (void*)this, AVARDAMAGE_ENTIRE); m_fActiveInactiveAlpha.create(AVARTYPE_FLOAT, &g_pConfigManager->getConfigValuePtr("animations:fadein_speed")->floatValue, &g_pConfigManager->getConfigValuePtr("animations:fadein")->intValue, &g_pConfigManager->getConfigValuePtr("animations:fadein_curve")->strValue, (void*)this, AVARDAMAGE_ENTIRE); + m_cRealShadowColor.create(AVARTYPE_COLOR, &g_pConfigManager->getConfigValuePtr("animations:borders_speed")->floatValue, &g_pConfigManager->getConfigValuePtr("animations:borders")->intValue, &g_pConfigManager->getConfigValuePtr("animations:borders_curve")->strValue, (void*)this, AVARDAMAGE_SHADOW); m_dWindowDecorations.emplace_back(std::make_unique<CHyprDropShadowDecoration>(this)); // put the shadow so it's the first deco (has to be rendered first) } @@ -103,3 +104,12 @@ pid_t CWindow::getPID() { return PID; } + +IHyprWindowDecoration* CWindow::getDecorationByType(eDecorationType type) { + for (auto& wd : m_dWindowDecorations) { + if (wd->getDecorationType() == type) + return wd.get(); + } + + return nullptr; +}
\ No newline at end of file |
