Diffusion KWin fb4dc9a9cf91

[effects/sheet] Fix undesired perspective distortion

Authored by zzag on Aug 8 2018, 9:46 AM.

Description

[effects/sheet] Fix undesired perspective distortion

Summary:
If a modal window is near some of screen edges, it will be distorted
in undesired way when it's being animated.

In order to keep perspective distortions invariant, no matter where
the modal window is on the screen, we have to move that modal window
to the origin, scale it, rotate it, translate it, apply perspective projection,
and then move it back.

Test Plan:

  • Opened Kate
  • Opened "Open File" dialog (during the in animation, it was distorted as expected)
  • Closed that dialog (during the out animation, it was distorted as expected)

Reviewers: KWin, davidedmundson

Reviewed By: KWin, davidedmundson

Subscribers: davidedmundson, kwin

Tags: KWin

Differential Revision: https://phabricator.kde.org/D14687

Details

Committed
zzagAug 8 2018, 2:46 PM
Reviewer
KWin
Differential Revision
D14687: [effects/sheet] Fix undesired perspective distortion
Parents
R108:10e99f64c1e1: [effects/sheet] Grab modal windows
Branches
Unknown
Tags
Unknown