Merge lp:~azzar1/unity/lp-1485073 into lp:unity

Proposed by Andrea Azzarone
Status: Merged
Approved by: Marco Trevisan (Treviño)
Approved revision: no longer in the source branch.
Merged at revision: 4003
Proposed branch: lp:~azzar1/unity/lp-1485073
Merge into: lp:unity
Diff against target: 25 lines (+0/-4)
2 files modified
plugins/unityshell/src/unityshell.cpp (+0/-1)
unity-shared/CompizUtils.cpp (+0/-3)
To merge this branch: bzr merge lp:~azzar1/unity/lp-1485073
Reviewer Review Type Date Requested Status
Marco Trevisan (Treviño) Approve
PS Jenkins bot (community) continuous-integration Needs Fixing
Review via email: mp+268122@code.launchpad.net

Commit message

Properly hide decorations when on "Show Desktop" mode.

Description of the change

The all point of DoOverrideFrameRegion is to short circuit the frame region update func and ensure that the frame does not have a region. So we should not call deco_win->... there.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/unityshell/src/unityshell.cpp'
2--- plugins/unityshell/src/unityshell.cpp 2015-05-22 13:20:44 +0000
3+++ plugins/unityshell/src/unityshell.cpp 2015-08-14 18:14:08 +0000
4@@ -1255,7 +1255,6 @@
5
6 window->updateFrameRegionSetCurrentIndex(MAXSHORT);
7 window->updateFrameRegion(region);
8- deco_win_->UpdateFrameRegion(region);
9 window->updateFrameRegionSetCurrentIndex(oldUpdateFrameRegionIndex);
10 }
11
12
13=== modified file 'unity-shared/CompizUtils.cpp'
14--- unity-shared/CompizUtils.cpp 2014-10-22 13:58:46 +0000
15+++ unity-shared/CompizUtils.cpp 2015-08-14 18:14:08 +0000
16@@ -190,9 +190,6 @@
17 if (win->wmType() & (CompWindowTypeDockMask | CompWindowTypeDesktopMask))
18 return elements;
19
20- if (win->inShowDesktopMode())
21- return elements;
22-
23 auto const& region = win->region();
24 bool rectangular = (region.numRects() == 1);
25 bool alpha = win->alpha();