-
Committer:
Tarmac
-
Author(s):
Marco Trevisan (Treviño)
-
Date:
2012-03-13 01:29:14 UTC
-
mfrom:
(2020.1.7 alt+tab-background-load)
-
Revision ID:
tarmac-20120313012914-2hkj2tqn2tfcnguf
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. Fixes: https://bugs.launchpad.net/bugs/942634. Approved by Andrea Azzarone.