Merge lp:~3v1n0/unity/alt+tab-background-load into lp:unity
Status: | Merged |
---|---|
Approved by: | Marco Trevisan (Treviño) |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2091 |
Proposed branch: | lp:~3v1n0/unity/alt+tab-background-load |
Merge into: | lp:unity |
Diff against target: |
326 lines (+114/-60) 2 files modified
plugins/unityshell/src/SwitcherController.cpp (+104/-54) plugins/unityshell/src/SwitcherController.h (+10/-6) |
To merge this branch: | bzr merge lp:~3v1n0/unity/alt+tab-background-load |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Andrea Azzarone (community) | Approve | ||
Tim Penhey (community) | Needs Fixing | ||
Review via email: mp+94669@code.launchpad.net |
Description of the change
Add some background operations to the SwitcherController to make the Alt+Tab to show-up quicker
The switcher controller now when initialized setup a lazy timer (now set to 10s) that on timeout will construct the
switcher view, to make the first time usage quicker.
Also, I've added an idle that will run as soon as the user presses the switcher key combination, that constructs the view in background (and shows an invisible window, since the the ShowWindow operation can take longer than just setting the view visible) to make sure that when the show-timeout occurs everything is already there and it just needs to be shown (setting its opacity).
Tests included into the branch lp:~3v1n0/unity/alt+tab-background-load.tests
just a note: can you set the timer rather to 20s? (10s is quite short to have everything loaded on the desktop on machines).