Merge lp:~robertcarr/unity-system-compositor/disable-cursor into lp:unity-system-compositor

Proposed by Robert Carr
Status: Merged
Approved by: Robert Ancell
Approved revision: 34
Merged at revision: 39
Proposed branch: lp:~robertcarr/unity-system-compositor/disable-cursor
Merge into: lp:unity-system-compositor
Diff against target: 35 lines (+13/-0)
1 file modified
src/system_compositor.cpp (+13/-0)
To merge this branch: bzr merge lp:~robertcarr/unity-system-compositor/disable-cursor
Reviewer Review Type Date Requested Status
Alan Griffiths Approve
PS Jenkins bot (community) continuous-integration Approve
Robert Ancell Approve
Review via email: mp+174006@code.launchpad.net

Commit message

Disable hardware cursor.

Description of the change

Pending https://code.launchpad.net/~robertcarr/mir/improve-cursor-configuration/+merge/174003

Disable the cursor.

The input stack is left on so it can later be used for VT handling.

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
Robert Ancell (robert-ancell) wrote :

Looks fine once the other merge lands.

review: Approve
Revision history for this message
Robert Carr (robertcarr) wrote :

Should be good to go. Requested another review from Jenkins.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

OK

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/system_compositor.cpp'
2--- src/system_compositor.cpp 2013-07-03 04:22:42 +0000
3+++ src/system_compositor.cpp 2013-07-10 17:18:28 +0000
4@@ -22,11 +22,13 @@
5 #include <mir/shell/session.h>
6 #include <mir/shell/session_container.h>
7 #include <mir/shell/focus_setter.h>
8+#include <mir/input/cursor_listener.h>
9
10 #include <iostream>
11 #include <thread>
12
13 namespace msh = mir::shell;
14+namespace mi = mir::input;
15
16 class SystemCompositorServerConfiguration : public mir::DefaultServerConfiguration
17 {
18@@ -57,6 +59,17 @@
19 {
20 return the_options()->is_set ("version");
21 }
22+
23+ std::shared_ptr<mi::CursorListener> the_cursor_listener() override
24+ {
25+ struct NullCursorListener : public mi::CursorListener
26+ {
27+ void cursor_moved_to(float, float) override
28+ {
29+ }
30+ };
31+ return std::make_shared<NullCursorListener>();
32+ }
33 };
34
35 void SystemCompositor::run(int argc, char const** argv)

Subscribers

People subscribed via source and target branches