mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 19:45:58 +01:00
better
This commit is contained in:
parent
276652b44e
commit
d3e26652d6
1 changed files with 46 additions and 47 deletions
|
@ -114,6 +114,7 @@ void CWorkspace::startAnim(bool in, bool left, bool instant) {
|
|||
m_fAlpha = in ? 1.F : 0.F;
|
||||
|
||||
// handle animation styles for the movement one
|
||||
if (m_vRenderOffset.m_pConfig->pValues->internalEnabled) {
|
||||
if (ANIMSTYLE.starts_with("slide") && ANIMSTYLE.contains("%")) {
|
||||
const auto PMONITOR = g_pCompositor->getMonitorFromID(m_iMonitorID);
|
||||
float movePerc = 0.F;
|
||||
|
@ -164,8 +165,6 @@ void CWorkspace::startAnim(bool in, bool left, bool instant) {
|
|||
|
||||
m_fScaleClients.setValueAndWarp(1.F);
|
||||
|
||||
// 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);
|
||||
|
|
Loading…
Reference in a new issue