-
Committer:
Tarmac
-
Author(s):
Sam Spilsbury
-
Date:
2013-05-29 18:37:30 UTC
-
mfrom:
(3724.3.2 compiz.fix_1165343)
-
Revision ID:
tarmac-20130529183730-3ij5ws82mpg50poj
Change the behaviour of undecorating windows.
Previously when a window was undecorated, we would shift it back to an appropriate position according to its gravity member. That behaviour was problematic because in the StaticGravity case the window has to just stay in the same place. But then if you had a window with StaticGravity which then did get a decoration and later removed it, it would be placed as though it was decorated and appear to be in the wrong place.
The correct behaviour is to place all windows as though they have decorations, and then when decorations are removed, to move the window back to the corner as indicated in its gravity and then expand its size to cover the obscured regions no longer hidden because the decorations went away.
(LP: #1165343).
Approved by PS Jenkins bot, Brandon Schaefer, MC Return.