Merge lp:~nick-dedekind/qtubuntu/1623861.window-focus into lp:qtubuntu
| Status: | Merged |
|---|---|
| Approved by: | Daniel d'Andrada on 2016-09-28 |
| Approved revision: | 346 |
| Merged at revision: | 344 |
| Proposed branch: | lp:~nick-dedekind/qtubuntu/1623861.window-focus |
| Merge into: | lp:qtubuntu |
| Diff against target: |
210 lines (+46/-41) 4 files modified
src/ubuntumirclient/input.cpp (+5/-31) src/ubuntumirclient/input.h (+2/-4) src/ubuntumirclient/window.cpp (+38/-5) src/ubuntumirclient/window.h (+1/-1) |
| To merge this branch: | bzr merge lp:~nick-dedekind/qtubuntu/1623861.window-focus |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Daniel d'Andrada (community) | 2016-09-21 | Approve on 2016-09-28 | |
| Unity8 CI Bot | continuous-integration | Approve on 2016-09-28 | |
|
Review via email:
|
|||
Commit Message
Moved focus handling to UbuntuWindow to ensure focus optimization supports multiple windows rather than being application global.
Description of the Change
Moved focus handling to UbuntuWindow to ensure focus optimization supports multiple windows rather than being application global.
* Are there any related MPs required for this MP to build/function as expected? Please list.
No
* Did you perform an exploratory manual test run of your code change and any related functionality?
Yes
* If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A
| Daniel d'Andrada (dandrader) wrote : | # |
Looks good. just one minor thing:
"""
// Mir may have sent a pair of focus lost/gained events, so we need to "peek" into the queue
// so that we don't deactivate windows prematurely.
"""
Please move that comment from UbuntuInput to UbuntuWindow as well (instead of just deleting it). This mPendingFocusGa
Your commit message is also too vague. What you did was making the focus-change optimization logic support multiple windows (by moving it to UbuntuWindow and thus making it per-window).
| Nick Dedekind (nick-dedekind) wrote : | # |
> Looks good. just one minor thing:
>
> """
> // Mir may have sent a pair of focus lost/gained events, so we need to "peek"
> into the queue
> // so that we don't deactivate windows prematurely.
> """
>
> Please move that comment from UbuntuInput to UbuntuWindow as well (instead of
> just deleting it). This mPendingFocusGa
> thus deserves a comment.
Done
>
> Your commit message is also too vague. What you did was making the focus-
> change optimization logic support multiple windows (by moving it to
> UbuntuWindow and thus making it per-window).
Done
| Unity8 CI Bot (unity8-ci-bot) wrote : | # |
PASSED: Continuous integration, rev:344
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
| Unity8 CI Bot (unity8-ci-bot) wrote : | # |
PASSED: Continuous integration, rev:345
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
| Daniel d'Andrada (dandrader) wrote : | # |
Please either rebase on top of lp:~gerboland/qtubuntu/stricter-enums or remove the fix you did in the debug message of UbuntuWindow:
Otherwise they will conflict.
- 346. By Nick Dedekind on 2016-09-28
-
removed debug fix
| Nick Dedekind (nick-dedekind) wrote : | # |
> Please either rebase on top of lp:~gerboland/qtubuntu/stricter-enums or remove
> the fix you did in the debug message of
> UbuntuWindow:
> for that message).
>
> Otherwise they will conflict.
removed changed.
| Nick Dedekind (nick-dedekind) wrote : | # |
> Please either rebase on top of lp:~gerboland/qtubuntu/stricter-enums or remove
> the fix you did in the debug message of
> UbuntuWindow:
> for that message).
>
> Otherwise they will conflict.
removed changed.

PASSED: Continuous integration, rev:343 /unity8- jenkins. ubuntu. com/job/ lp-qtubuntu- ci/117/ /unity8- jenkins. ubuntu. com/job/ build/2926 /unity8- jenkins. ubuntu. com/job/ build-0- fetch/2954 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= vivid+overlay/ 2812 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= vivid+overlay/ 2812/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= xenial+ overlay/ 2812 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= xenial+ overlay/ 2812/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= yakkety/ 2812 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= yakkety/ 2812/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= vivid+overlay/ 2812 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= vivid+overlay/ 2812/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= xenial+ overlay/ 2812 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= xenial+ overlay/ 2812/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= yakkety/ 2812 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= yakkety/ 2812/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= vivid+overlay/ 2812 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= vivid+overlay/ 2812/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= xenial+ overlay/ 2812 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= xenial+ overlay/ 2812/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= yakkety/ 2812 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= yakkety/ 2812/artifact/ output/ *zip*/output. zip
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild: /unity8- jenkins. ubuntu. com/job/ lp-qtubuntu- ci/117/ rebuild
https:/