Merge lp:~townsend/unity/fix-extra-decorations into lp:unity/5.0
Status: | Merged |
---|---|
Merged at revision: | 2422 |
Proposed branch: | lp:~townsend/unity/fix-extra-decorations |
Merge into: | lp:unity/5.0 |
Diff against target: |
12 lines (+1/-1) 1 file modified
plugins/unityshell/src/PluginAdapter.cpp (+1/-1) |
To merge this branch: | bzr merge lp:~townsend/unity/fix-extra-decorations |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Unity Team | Pending | ||
Review via email: mp+173027@code.launchpad.net |
Commit message
Check to see if the window is supposed to have decorations instead of the window actually being decorated when Undecorate() is called. This fixes a race condition where windows opened maximized upon login would sometimes have extra decorations.
Description of the change
= Issue =
When using Unity 5.20 in precise-proposed, a new bug would sometimes occur if you have an application start up maximized when logging in. This is due to lp:unity/5.0 revno. 2415.
= Fix =
Check to see if the window is supposed to have decorations instead of the window actually being decorated when Undecorate() is called. This fixes a race condition where windows opened maximized upon login would sometimes have extra decorations.
It seems that the same code is also in trunk, do we have the same bug in saucy?
If yes we should probably propose for it before.
However, why not keeping IsWindowDecorated inside Undecorate and modifying it so that it returns immediately false if HasWindowDecora tions returns false (if doing this we should probably think also to a way to optimize the calls, so that we reduce to the minimum the GetMwnDecorations [i.e. XGetWindowProperty] calls)?