Merge lp:~jassmith/unity/unity.alt-tab-timings into lp:unity

Proposed by Jason Smith
Status: Merged
Approved by: Marco Trevisan (Treviño)
Approved revision: no longer in the source branch.
Merged at revision: 2020
Proposed branch: lp:~jassmith/unity/unity.alt-tab-timings
Merge into: lp:unity
Diff against target: 12 lines (+1/-1)
1 file modified
plugins/unityshell/src/SwitcherController.cpp (+1/-1)
To merge this branch: bzr merge lp:~jassmith/unity/unity.alt-tab-timings
Reviewer Review Type Date Requested Status
David Barth (community) Approve
Jason Smith (community) Needs Fixing
Review via email: mp+94113@code.launchpad.net

Description of the change

= The Problem =
Alt-Tab timeouts are too long

= The Fix =
Make the timeout 75ms instead of 150ms

= Testing =
The existing switcher autopilot tests cover the expected behaviour alt-tab behaviour.

To post a comment you must log in.
Revision history for this message
Jason Smith (jassmith) wrote :

No tests

review: Needs Fixing
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

configuration option change doesn't need tests. However, some autopilot test triggering the timeout would need to exist or be updated to this value.

Revision history for this message
David Barth (dbarth) wrote :

At the limit, a unit test could be added to verify that the defined default is what is actually the value that is used. There are practical maintenance issues to adding unit tests at that granularity, since the defaults are not managed in a configuration file, but in a design specification that is not programmatically connected to the code.

Besides, while arguing about the interest of an equivalent AP test, we have agreed that an AP test would be equivalent to such a unit test.

So we concluded that the AP test was not necessary, since the equivalent unit test would be rather trivial and difficult to maintain

review: Approve
Revision history for this message
Tim Penhey (thumper) wrote :

Jason, it could be worthwhile updating the switcher AP test to just wait for 0.1 sec.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/unityshell/src/SwitcherController.cpp'
2--- plugins/unityshell/src/SwitcherController.cpp 2012-02-12 10:43:11 +0000
3+++ plugins/unityshell/src/SwitcherController.cpp 2012-02-22 10:28:22 +0000
4@@ -42,7 +42,7 @@
5 , show_timer_(0)
6 , detail_timer_(0)
7 {
8- timeout_length = 150;
9+ timeout_length = 75;
10 detail_on_timeout = true;
11 detail_timeout_length = 1500;
12 monitor_ = 0;