Mir

Merge lp:~alan-griffiths/mir/fix-bug-1152628 into lp:~mir-team/mir/trunk

Proposed by Alan Griffiths
Status: Merged
Approved by: Robert Carr
Approved revision: no longer in the source branch.
Merged at revision: 480
Proposed branch: lp:~alan-griffiths/mir/fix-bug-1152628
Merge into: lp:~mir-team/mir/trunk
Diff against target: 23 lines (+4/-2)
1 file modified
src/compositor/compositor.cpp (+4/-2)
To merge this branch: bzr merge lp:~alan-griffiths/mir/fix-bug-1152628
Reviewer Review Type Date Requested Status
Robert Carr (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+152449@code.launchpad.net

Commit message

compositor: avoid storing invalid reference

Description of the change

compositor: avoid storing invalid reference

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
Robert Carr (robertcarr) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/compositor/compositor.cpp'
2--- src/compositor/compositor.cpp 2013-03-04 16:02:02 +0000
3+++ src/compositor/compositor.cpp 2013-03-08 16:37:27 +0000
4@@ -46,15 +46,17 @@
5
6 struct FilterForVisibleRenderablesInRegion : public mc::FilterForRenderables
7 {
8- FilterForVisibleRenderablesInRegion(mir::geometry::Rectangle enclosing_region)
9+ FilterForVisibleRenderablesInRegion(mir::geometry::Rectangle const& enclosing_region)
10 : enclosing_region(enclosing_region)
11 {
12 }
13 bool operator()(mg::Renderable& renderable)
14 {
15+ // TODO check against enclosing_region
16 return !renderable.hidden();
17 }
18- mir::geometry::Rectangle& enclosing_region;
19+
20+ mir::geometry::Rectangle const& enclosing_region;
21 };
22
23 }

Subscribers

People subscribed via source and target branches