Ensure ScreenTransformation matrix is reset after rendering cube
author Martin Gräßlin
()
committer Martin Gräßlin
()
commit 6a950aa510e33ce77b15608f19f6032176acd1f0
tree f7ce12aaca2c7d21a623e52317ae5291c3f65612
parent be2a8bf3ecf036bc95e1210359dafaa3ce30f733
Ensure ScreenTransformation matrix is reset after rendering cube

Cube effect modifies the ScreenTransformation matrix. While each
window resets the matrix on a global level it's not reset. That
means if the last rendered window had the screen rotated the
ScreenTransformation keeps the rotation even after the cube
ended. This causes a rotated window in e.g. TaskbarThumbnails.

Cherry-picked from 9417a76132b5af438d25870c479e60518d7b0270

BUG: 299869
FIXED-IN: 4.8.4
REVIEW: 104918
kwin/effects/cube/cube.cpp