Merge lp:~3v1n0/unity/decorations-transformated-vp into lp:unity

Proposed by Marco Trevisan (Treviño)
Status: Merged
Approved by: Eleni Maria Stea
Approved revision: no longer in the source branch.
Merged at revision: 3886
Proposed branch: lp:~3v1n0/unity/decorations-transformated-vp
Merge into: lp:unity
Diff against target: 27 lines (+6/-2)
1 file modified
decorations/DecoratedWindow.cpp (+6/-2)
To merge this branch: bzr merge lp:~3v1n0/unity/decorations-transformated-vp
Reviewer Review Type Date Requested Status
Eleni Maria Stea (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+238966@code.launchpad.net

Commit message

Decorated Window: still paint decorations if on transformated windows in different workspaces

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Eleni Maria Stea (hikiko) wrote :

Thank you! :)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'decorations/DecoratedWindow.cpp'
2--- decorations/DecoratedWindow.cpp 2014-10-01 16:48:15 +0000
3+++ decorations/DecoratedWindow.cpp 2014-10-20 20:43:26 +0000
4@@ -620,8 +620,10 @@
5 GLWindowPaintAttrib const& attrib,
6 CompRegion const& region, unsigned mask)
7 {
8- if (win_->defaultViewport() != screen->vp())
9+ if (!(mask & PAINT_SCREEN_TRANSFORMED_MASK) && win_->defaultViewport() != screen->vp())
10+ {
11 return;
12+ }
13
14 if (dirty_geo_)
15 parent_->UpdateDecorationPosition();
16@@ -639,8 +641,10 @@
17 GLWindowPaintAttrib const& attrib,
18 CompRegion const& region, unsigned mask)
19 {
20- if (last_shadow_rect_.isEmpty() || win_->defaultViewport() != screen->vp())
21+ if (last_shadow_rect_.isEmpty() || (!(mask & PAINT_SCREEN_TRANSFORMED_MASK) && win_->defaultViewport() != screen->vp()))
22+ {
23 return;
24+ }
25
26 auto const& clip_region = (mask & PAINT_WINDOW_TRANSFORMED_MASK) ? infiniteRegion : region;
27 mask |= PAINT_WINDOW_BLEND_MASK;