Merge lp:~mir-team/unity-system-compositor/revert-stub-cookie into lp:unity-system-compositor

Proposed by Brandon Schaefer
Status: Rejected
Rejected by: Brandon Schaefer
Proposed branch: lp:~mir-team/unity-system-compositor/revert-stub-cookie
Merge into: lp:unity-system-compositor
Diff against target: 58 lines (+0/-34)
1 file modified
src/server.cpp (+0/-34)
To merge this branch: bzr merge lp:~mir-team/unity-system-compositor/revert-stub-cookie
Reviewer Review Type Date Requested Status
Mir CI Bot continuous-integration Needs Fixing
PS Jenkins bot (community) continuous-integration Approve
Unity System Compositor Development Team Pending
Review via email: mp+284200@code.launchpad.net

Commit message

lp:mir does a copy_n on the empty cookie (which results in a seg fault). Needs fixing in lp:mir before this can land!

Description of the change

lp:mir does a copy_n on the empty cookie (which results in a seg fault). Needs fixing in lp:mir before this can land!

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
Mir CI Bot (mir-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

Workaround went in that uses the exact size needed, no longer needed!

Unmerged revisions

271. By Brandon Schaefer

* Undo this change, needs fixing in lp:mir to do this!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/server.cpp'
2--- src/server.cpp 2016-01-27 14:58:39 +0000
3+++ src/server.cpp 2016-01-28 02:28:14 +0000
4@@ -32,7 +32,6 @@
5 #include "display_configuration_policy.h"
6 #include "steady_clock.h"
7
8-#include <mir/cookie/authority.h>
9 #include <mir/input/cursor_listener.h>
10 #include <mir/server_status_listener.h>
11 #include <mir/shell/focus_controller.h>
12@@ -100,33 +99,6 @@
13
14 std::shared_ptr<msh::FocusController> const focus_controller;
15 };
16-
17-struct StubCookie : public mir::cookie::Cookie
18-{
19- uint64_t timestamp() const override
20- {
21- return 0;
22- }
23-
24- std::vector<uint8_t> serialize() const override
25- {
26- return std::vector<uint8_t>();
27- }
28-};
29-
30-struct StubCookieAuthority : public mir::cookie::Authority
31-{
32- std::unique_ptr<mir::cookie::Cookie> make_cookie(uint64_t const& timestamp) override
33- {
34- return std::unique_ptr<StubCookie>(new StubCookie());
35- }
36-
37- std::unique_ptr<mir::cookie::Cookie> make_cookie(std::vector<uint8_t> const& raw_cookie) override
38- {
39- return std::unique_ptr<StubCookie>(new StubCookie());
40- }
41-};
42-
43 const char* const dm_from_fd = "from-dm-fd";
44 const char* const dm_to_fd = "to-dm-fd";
45 const char* const dm_stub = "debug-without-dm";
46@@ -188,12 +160,6 @@
47 the_session_switcher());
48 });
49
50- override_the_cookie_authority([this]()
51- -> std::shared_ptr<mir::cookie::Authority>
52- {
53- return std::make_unique<StubCookieAuthority>();
54- });
55-
56 set_config_filename("unity-system-compositor.conf");
57
58 apply_settings();

Subscribers

People subscribed via source and target branches