[effects/minimizeanimation] Make it a little bit smoother
ClosedPublic

Authored by zzag on Aug 2 2018, 12:24 PM.

Details

Summary

Don't cast translation values from double to int because it makes
animation a little bit choppy.

It makes significant difference only when animation speed is set to
"Very slow".

Test Plan
  • Go to 'System Settins > Display and Monitor > Compositor';
  • Set animation speed to "Very slow"(it scales animation durations by 20x);
  • Minimize/uniminimize System Settings.

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
zzag created this revision.Aug 2 2018, 12:24 PM
Restricted Application added a project: KWin. · View Herald TranscriptAug 2 2018, 12:24 PM
Restricted Application added a subscriber: kwin. · View Herald Transcript
zzag requested review of this revision.Aug 2 2018, 12:24 PM
davidedmundson accepted this revision.Aug 2 2018, 12:24 PM
This revision is now accepted and ready to land.Aug 2 2018, 12:24 PM
This revision was automatically updated to reflect the committed changes.