Merge lp:~vanvugt/mir/fix-hide-then-show into lp:mir
| Status: | Merged |
|---|---|
| Approved by: | Daniel van Vugt on 2017-02-14 |
| Approved revision: | 4006 |
| Merged at revision: | 4028 |
| Proposed branch: | lp:~vanvugt/mir/fix-hide-then-show |
| Merge into: | lp:mir |
| Diff against target: |
39 lines (+11/-4) 2 files modified
src/platforms/mesa/server/kms/cursor.cpp (+1/-4) tests/unit-tests/platforms/mesa/kms/test_cursor.cpp (+10/-0) |
| To merge this branch: | bzr merge lp:~vanvugt/mir/fix-hide-then-show |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Chris Halse Rogers | 2017-02-01 | Approve on 2017-02-14 | |
| Mir CI Bot | continuous-integration | Approve on 2017-02-02 | |
|
Review via email:
|
|||
Commit Message
Fix a strange little bug in the DRM cursor code where:
hide(); show(); // WORKS
but
hide(); show(image); // FAILS
Description of the Change
Not known to be a problem in production, but I ran into it in another branch I'm working on. Although on some random occasions in the past Mir on my desktop has lost its cursor... so maybe this explains those.
- 4004. By Daniel van Vugt on 2017-02-01
-
Tidy up the test (remove copy/paste stupidity)
| Mir CI Bot (mir-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:4004
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
FAILURE: 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 van Vugt (vanvugt) wrote : | # |
^^^
Bug 1646375
- 4005. By Daniel van Vugt on 2017-02-02
-
Merge latest trunk
| Mir CI Bot (mir-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:4005
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
FAILURE: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
| Daniel van Vugt (vanvugt) wrote : | # |
^^^
Bug 1661187
- 4006. By Daniel van Vugt on 2017-02-02
-
Try again
| Mir CI Bot (mir-ci-bot) wrote : | # |
PASSED: Continuous integration, rev:4006
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
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:/
Click here to trigger a rebuild:
https:/
| Chris Halse Rogers (raof) wrote : | # |
The comment is now misleading; please either just remove the if() without re-arranging the call, or remove the comment :)
Making the place_cursor_
| Daniel van Vugt (vanvugt) wrote : | # |
Incorrect.
The comment refers to image-writing functions that might throw (out of view in this diff). And it does have to go below visible=true or else it does nothing. See:
void mgm::Cursor:
std:
geometry::Point position,
ForceCursor
{
current_
if (!visible)
return;
...

PASSED: Continuous integration, rev:4003 /mir-jenkins. ubuntu. com/job/ mir-ci/ 2907/ /mir-jenkins. ubuntu. com/job/ build-mir/ 3839 /mir-jenkins. ubuntu. com/job/ build-0- fetch/3918 /mir-jenkins. ubuntu. com/job/ build-1- sourcepkg/ release= vivid+overlay/ 3908 /mir-jenkins. ubuntu. com/job/ build-1- sourcepkg/ release= xenial+ overlay/ 3908 /mir-jenkins. ubuntu. com/job/ build-1- sourcepkg/ release= zesty/3908 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= clang,platform= mesa,release= zesty/3866 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= clang,platform= mesa,release= zesty/3866/ artifact/ output/ *zip*/output. zip /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= gcc,platform= mesa,release= xenial+ overlay/ 3866 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= gcc,platform= mesa,release= xenial+ overlay/ 3866/artifact/ output/ *zip*/output. zip /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= gcc,platform= mesa,release= zesty/3866 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= amd64,compiler= gcc,platform= mesa,release= zesty/3866/ artifact/ output/ *zip*/output. zip /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= cross-armhf, compiler= gcc,platform= android, release= vivid+overlay/ 3866 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= cross-armhf, compiler= gcc,platform= android, release= vivid+overlay/ 3866/artifact/ output/ *zip*/output. zip /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= i386,compiler= gcc,platform= android, release= vivid+overlay/ 3866 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= i386,compiler= gcc,platform= android, release= vivid+overlay/ 3866/artifact/ output/ *zip*/output. zip /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= i386,compiler= gcc,platform= mesa,release= xenial+ overlay/ 3866 /mir-jenkins. ubuntu. com/job/ build-2- binpkg- mir/arch= i386,compiler= gcc,platform= mesa,release= xenial+ overlay/ 3866/artifact/ output/ *zip*/output. zip
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
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:/
Click here to trigger a rebuild: /mir-jenkins. ubuntu. com/job/ mir-ci/ 2907/rebuild
https:/