mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 21:26:00 +01:00
fix pure fade
This commit is contained in:
parent
746f804568
commit
276652b44e
1 changed files with 8 additions and 5 deletions
|
@ -164,11 +164,14 @@ void CWorkspace::startAnim(bool in, bool left, bool instant) {
|
||||||
|
|
||||||
m_fScaleClients.setValueAndWarp(1.F);
|
m_fScaleClients.setValueAndWarp(1.F);
|
||||||
|
|
||||||
if (in) {
|
// special case: fade enabled but this anim is disabled, so don't change anything. Only do the anim otherwise.
|
||||||
m_vRenderOffset.setValueAndWarp(Vector2D(left ? XDISTANCE : -XDISTANCE, 0.0));
|
if (m_vRenderOffset.m_pConfig->pValues->internalEnabled || !m_fAlpha.m_pConfig->pValues->internalEnabled) {
|
||||||
m_vRenderOffset = Vector2D(0, 0);
|
if (in) {
|
||||||
} else
|
m_vRenderOffset.setValueAndWarp(Vector2D(left ? XDISTANCE : -XDISTANCE, 0.0));
|
||||||
m_vRenderOffset = Vector2D(left ? -XDISTANCE : XDISTANCE, 0.0);
|
m_vRenderOffset = Vector2D(0, 0);
|
||||||
|
} else
|
||||||
|
m_vRenderOffset = Vector2D(left ? -XDISTANCE : XDISTANCE, 0.0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (instant) {
|
if (instant) {
|
||||||
|
|
Loading…
Reference in a new issue