Mir

Merge lp:~afrantzis/mir/fix-1359487-demo-shell-visibility-events into lp:mir

Proposed by Alexandros Frantzis
Status: Merged
Approved by: Daniel van Vugt
Approved revision: no longer in the source branch.
Merged at revision: 1869
Proposed branch: lp:~afrantzis/mir/fix-1359487-demo-shell-visibility-events
Merge into: lp:mir
Diff against target: 27 lines (+7/-0)
2 files modified
examples/demo-shell/demo_compositor.cpp (+6/-0)
examples/demo-shell/demo_compositor.h (+1/-0)
To merge this branch: bzr merge lp:~afrantzis/mir/fix-1359487-demo-shell-visibility-events
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Daniel van Vugt Approve
Alberto Aguirre (community) Approve
Kevin DuBois (community) Approve
Alan Griffiths Approve
Review via email: mp+232435@code.launchpad.net

Commit message

examples: Register the DemoCompositor with the Scene to properly process visibility events (LP: #1359487)

Description of the change

examples: Register the DemoCompositor with the Scene to properly process visibility events

To post a comment you must log in.
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

Shouldn't there be a test too?

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Kevin DuBois (kdub) wrote :

looks good, although its funny that we we could access the surface list with an id that wasn't registered...

review: Approve
Revision history for this message
Alberto Aguirre (albaguirre) wrote :

LGTM

review: Approve
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

The failure (bug 1362491) appears to be unrelated to this proposal. Tested and seems to work well.

review: Approve
Revision history for this message
Alexandros Frantzis (afrantzis) wrote :

> looks good, although its funny that we we could access the surface list with an id that wasn't registered...

> Shouldn't there be a test too?

Both points will be addressed in upcoming MP.

Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'examples/demo-shell/demo_compositor.cpp'
2--- examples/demo-shell/demo_compositor.cpp 2014-08-05 12:23:05 +0000
3+++ examples/demo-shell/demo_compositor.cpp 2014-08-27 16:01:22 +0000
4@@ -51,6 +51,12 @@
5 30.0f, //titlebar_height
6 80.0f) //shadow_radius
7 {
8+ scene->register_compositor(this);
9+}
10+
11+me::DemoCompositor::~DemoCompositor()
12+{
13+ scene->unregister_compositor(this);
14 }
15
16 void me::DemoCompositor::composite()
17
18=== modified file 'examples/demo-shell/demo_compositor.h'
19--- examples/demo-shell/demo_compositor.h 2014-08-05 12:26:01 +0000
20+++ examples/demo-shell/demo_compositor.h 2014-08-27 16:01:22 +0000
21@@ -46,6 +46,7 @@
22 std::shared_ptr<compositor::Scene> const& scene,
23 graphics::GLProgramFactory const& factory,
24 std::shared_ptr<compositor::CompositorReport> const& report);
25+ ~DemoCompositor();
26
27 void composite() override;
28

Subscribers

People subscribed via source and target branches