Mir

Merge lp:~robertcarr/mir/enable-input-by-default into lp:~mir-team/mir/trunk

Proposed by Robert Carr
Status: Merged
Approved by: Robert Ancell
Approved revision: no longer in the source branch.
Merged at revision: 659
Proposed branch: lp:~robertcarr/mir/enable-input-by-default
Merge into: lp:~mir-team/mir/trunk
Diff against target: 38 lines (+4/-3)
1 file modified
src/server/default_server_configuration.cpp (+4/-3)
To merge this branch: bzr merge lp:~robertcarr/mir/enable-input-by-default
Reviewer Review Type Date Requested Status
Robert Ancell Approve
Kevin DuBois (community) Needs Fixing
Daniel van Vugt Needs Fixing
Alan Griffiths Needs Information
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+161526@code.launchpad.net

Commit message

Enable input by default.

Description of the change

Enable input option by default (currently half enabled!)

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
Alan Griffiths (alan-griffiths) wrote :

Just curious - I thought a while back that we decided the default should be "off". What has changed?

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

I think the option should be removed completely. Always on.

review: Needs Fixing
Revision history for this message
Kevin DuBois (kdub) wrote :

this shouldn't be the default until that ownership problem that was mentioned yesterday is fixed
on ctrl-c of the eglapp clients: http://pastebin.ubuntu.com/5623397/ with only --enable-input=true

review: Needs Fixing
Revision history for this message
Kevin DuBois (kdub) wrote :

also, the input stack is pretty chatty... its probably non-trivial to work the android input logging into our logging stack, but surely we can silence it somehow?

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

The ctrl-c issue is fixed. Do we remove the option or keep the default?

Revision history for this message
Robert Ancell (robert-ancell) wrote :

Make a second MP if the option should be removed

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/server/default_server_configuration.cpp'
2--- src/server/default_server_configuration.cpp 2013-04-26 12:21:57 +0000
3+++ src/server/default_server_configuration.cpp 2013-04-29 23:25:30 +0000
4@@ -142,6 +142,7 @@
5 char const* const glog_minloglevel = "glog-minloglevel";
6 char const* const glog_log_dir = "glog-log-dir";
7
8+bool const enable_input_default = true;
9
10 void parse_arguments(
11 boost::program_options::options_description desc,
12@@ -198,7 +199,7 @@
13
14 add_options()
15 ("file,f", po::value<std::string>(), "Socket filename")
16- ("enable-input,i", po::value<bool>(), "Enable input. [bool:default=false]")
17+ ("enable-input,i", po::value<bool>(), "Enable input. [bool:default=true]")
18 (log_display, po::value<bool>(), "Log the Display report. [bool:default=false]")
19 (log_app_mediator, po::value<bool>(), "Log the ApplicationMediator report. [bool:default=false]")
20 (log_msg_processor, po::value<bool>(), "log the MessageProcessor report")
21@@ -395,7 +396,7 @@
22 return input_manager(
23 [&, this]() -> std::shared_ptr<mi::InputManager>
24 {
25- if (the_options()->get("enable-input", true))
26+ if (the_options()->get("enable-input", enable_input_default))
27 return std::make_shared<mia::InputManager>(the_input_configuration());
28 else
29 return std::make_shared<mi::NullInputManager>();
30@@ -602,7 +603,7 @@
31 return input_target_listener(
32 [&]() -> std::shared_ptr<msh::InputTargetListener>
33 {
34- if (the_options()->get("enable-input", false))
35+ if (the_options()->get("enable-input", enable_input_default))
36 return std::make_shared<mia::DispatcherController>(the_input_configuration());
37 else
38 return std::make_shared<mi::NullInputTargetListener>();

Subscribers

People subscribed via source and target branches