mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 19:25:59 +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);
|
||||
|
||||
if (in) {
|
||||
m_vRenderOffset.setValueAndWarp(Vector2D(left ? XDISTANCE : -XDISTANCE, 0.0));
|
||||
m_vRenderOffset = Vector2D(0, 0);
|
||||
} else
|
||||
m_vRenderOffset = Vector2D(left ? -XDISTANCE : XDISTANCE, 0.0);
|
||||
// special case: fade enabled but this anim is disabled, so don't change anything. Only do the anim otherwise.
|
||||
if (m_vRenderOffset.m_pConfig->pValues->internalEnabled || !m_fAlpha.m_pConfig->pValues->internalEnabled) {
|
||||
if (in) {
|
||||
m_vRenderOffset.setValueAndWarp(Vector2D(left ? XDISTANCE : -XDISTANCE, 0.0));
|
||||
m_vRenderOffset = Vector2D(0, 0);
|
||||
} else
|
||||
m_vRenderOffset = Vector2D(left ? -XDISTANCE : XDISTANCE, 0.0);
|
||||
}
|
||||
}
|
||||
|
||||
if (instant) {
|
||||
|
|
Loading…
Reference in a new issue