Merge lp:~aacid/autopilot/precreate_keyboard into lp:autopilot
Status: | Merged |
---|---|
Approved by: | Christopher Lee |
Approved revision: | 549 |
Merged at revision: | 549 |
Proposed branch: | lp:~aacid/autopilot/precreate_keyboard |
Merge into: | lp:autopilot |
Diff against target: |
22 lines (+1/-3) 1 file modified
autopilot/testcase.py (+1/-3) |
To merge this branch: | bzr merge lp:~aacid/autopilot/precreate_keyboard |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Christopher Lee (community) | Approve | ||
PS Jenkins bot | continuous-integration | Approve | |
Nick Dedekind (community) | Needs Information | ||
Review via email: mp+254095@code.launchpad.net |
Commit message
Create keyboard well before it's going to be used
Otherwise it can cause races when using the uinput keyboard in mir, e.g.
Mir log says
[
autopilot log says
12:17:58.305 DEBUG _uinput:60 - Pressing p (25).
25 March 2015 12:17:58.305 is 1427285878.305, that is, the key press is sent 37 milliseconds before mir sees the device, so that key press is lost
Description of the change
Fix unstable unity8.
Autopilot 1.5 version at https:/
Hm. would a better solution not to be waiting for it to be ready before using it? visible= True before pressing a key?
ie. wait for Keyboard.
See the osk focused_type method. It uses a wait_for_ keyboard_ ready() call, although not sure why it's not always used.