Merge lp:~dandrader/qtmir/keyState into lp:qtmir
Status: | Superseded | ||||
---|---|---|---|---|---|
Proposed branch: | lp:~dandrader/qtmir/keyState | ||||
Merge into: | lp:qtmir | ||||
Prerequisite: | lp:~dandrader/qtmir/allowClientResize | ||||
Diff against target: |
145 lines (+43/-4) 3 files modified
src/platforms/mirserver/qteventfeeder.cpp (+3/-1) src/platforms/mirserver/windowmanagementpolicy.cpp (+29/-2) src/platforms/mirserver/windowmanagementpolicy.h (+11/-1) |
||||
To merge this branch: | bzr merge lp:~dandrader/qtmir/keyState | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gerry Boland (community) | Needs Information | ||
Unity8 CI Bot (community) | continuous-integration | Needs Fixing | |
Review via email: mp+320373@code.launchpad.net |
This proposal has been superseded by a proposal from 2017-03-22.
Commit message
Ensure the window that got a key down also gets the corresponding key up
Otherwise it will be left in a inconsistent state (with a pressed key hanging around).
QQuickWindow's input dispatching doesn't guarantee that for its QQuickItem.
So we have to do it ourselves.
This can happen when qml active focus changes in response to a key press.
Eg: client creates a child window in response to a Ctrl+O. By the time the user
releases the Ctrl, active focus will already be in the child window, so the child window
will get the release event instead of the top-level one.
Description of the change
* Are there any related MPs required for this MP to build/function as expected? Please list.
https:/
FAILED: Continuous integration, rev:619 /unity8- jenkins. ubuntu. com/job/ lp-qtmir- ci/592/ /unity8- jenkins. ubuntu. com/job/ build/4555/ console /unity8- jenkins. ubuntu. com/job/ build-0- fetch/4583 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= xenial+ overlay/ 4410/console /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= zesty/4410/ console /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= xenial+ overlay/ 4410/console /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= zesty/4410/ console /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= xenial+ overlay/ 4410/console /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= zesty/4410/ console
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
Click here to trigger a rebuild: /unity8- jenkins. ubuntu. com/job/ lp-qtmir- ci/592/ rebuild
https:/