Mir

Merge lp:~alan-griffiths/mir/proving-still-uses-DefaultWindowManager into lp:mir

Proposed by Alan Griffiths
Status: Merged
Approved by: Daniel van Vugt
Approved revision: no longer in the source branch.
Merged at revision: 2447
Proposed branch: lp:~alan-griffiths/mir/proving-still-uses-DefaultWindowManager
Merge into: lp:mir
Diff against target: 82 lines (+15/-4)
5 files modified
playground/demo-shell/demo_shell.cpp (+11/-0)
src/server/shell/default_window_manager.cpp (+1/-1)
tests/integration-tests/test_default_window_manager.cpp (+1/-1)
tests/mir_test_framework/fake_event_hub_server_configuration.cpp (+1/-1)
tests/unit-tests/shell/test_default_window_manager.cpp (+1/-1)
To merge this branch: bzr merge lp:~alan-griffiths/mir/proving-still-uses-DefaultWindowManager
Reviewer Review Type Date Requested Status
Daniel van Vugt Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+254728@code.launchpad.net

Commit message

playground: the proving server still needs to use DefaultWindowManager
Fixes LP: #1438621, LP: #1438660

Description of the change

playground: the proving server still needs to use DefaultWindowManager

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
Alan Griffiths (alan-griffiths) wrote :
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

A curiously simple fix... Verified in manual testing both bugs are fixed.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'playground/demo-shell/demo_shell.cpp'
2--- playground/demo-shell/demo_shell.cpp 2015-03-31 12:48:35 +0000
3+++ playground/demo-shell/demo_shell.cpp 2015-03-31 14:14:00 +0000
4@@ -29,6 +29,7 @@
5 #include "mir/compositor/display_buffer_compositor_factory.h"
6 #include "mir/compositor/destination_alpha.h"
7 #include "mir/compositor/renderer_factory.h"
8+#include "mir/shell/default_window_manager.h"
9 #include "server_example_host_lifecycle_event_listener.h"
10
11 #include <iostream>
12@@ -100,6 +101,16 @@
13 });
14 }
15
16+ auto the_window_manager_builder() -> shell::WindowManagerBuilder override
17+ {
18+ return [&](shell::FocusController* focus_controller)
19+ { return std::make_shared<shell::DefaultWindowManager>(
20+ focus_controller,
21+ the_placement_strategy(),
22+ the_session_coordinator(),
23+ the_surface_configurator()); };
24+ }
25+
26 std::shared_ptr<msh::HostLifecycleEventListener> the_host_lifecycle_event_listener() override
27 {
28 return host_lifecycle_event_listener(
29
30=== renamed file 'src/server/shell/default_window_manager.h' => 'src/include/server/mir/shell/default_window_manager.h'
31=== modified file 'src/server/shell/default_window_manager.cpp'
32--- src/server/shell/default_window_manager.cpp 2015-03-31 02:35:42 +0000
33+++ src/server/shell/default_window_manager.cpp 2015-03-31 14:14:00 +0000
34@@ -16,7 +16,7 @@
35 * Authored By: Alan Griffiths <alan@octopull.co.uk>
36 */
37
38-#include "default_window_manager.h"
39+#include "mir/shell/default_window_manager.h"
40
41 #include "mir/scene/null_surface_observer.h"
42 #include "mir/scene/placement_strategy.h"
43
44=== modified file 'tests/integration-tests/test_default_window_manager.cpp'
45--- tests/integration-tests/test_default_window_manager.cpp 2015-03-31 02:35:42 +0000
46+++ tests/integration-tests/test_default_window_manager.cpp 2015-03-31 14:14:00 +0000
47@@ -20,8 +20,8 @@
48 #include "mir/scene/session.h"
49 #include "mir/scene/null_session_listener.h"
50 #include "mir/scene/placement_strategy.h"
51+#include "mir/shell/default_window_manager.h"
52
53-#include "src/server/shell/default_window_manager.h"
54 #include "src/server/scene/session_manager.h"
55 #include "src/server/scene/default_session_container.h"
56
57
58=== modified file 'tests/mir_test_framework/fake_event_hub_server_configuration.cpp'
59--- tests/mir_test_framework/fake_event_hub_server_configuration.cpp 2015-03-31 02:35:42 +0000
60+++ tests/mir_test_framework/fake_event_hub_server_configuration.cpp 2015-03-31 14:14:00 +0000
61@@ -21,7 +21,7 @@
62
63 #include "mir_test/fake_event_hub.h"
64
65-#include "src/server/shell/default_window_manager.h"
66+#include "mir/shell/default_window_manager.h"
67
68 namespace mtf = mir_test_framework;
69 namespace mi = mir::input;
70
71=== modified file 'tests/unit-tests/shell/test_default_window_manager.cpp'
72--- tests/unit-tests/shell/test_default_window_manager.cpp 2015-03-31 02:35:42 +0000
73+++ tests/unit-tests/shell/test_default_window_manager.cpp 2015-03-31 14:14:00 +0000
74@@ -16,7 +16,7 @@
75 * Authored by: ALan Griffiths <alan.griffiths@canonical.com>
76 */
77
78-#include "src/server/shell/default_window_manager.h"
79+#include "mir/shell/default_window_manager.h"
80
81 #include "mir/shell/abstract_shell.h"
82 #include "mir/scene/session.h"

Subscribers

People subscribed via source and target branches