Merge lp://qastaging/~gerboland/qtmir/fix-glcontext-loss-on-reconfigure into lp://qastaging/qtmir

Proposed by Gerry Boland
Status: Merged
Approved by: Daniel d'Andrada
Approved revision: 587
Merged at revision: 600
Proposed branch: lp://qastaging/~gerboland/qtmir/fix-glcontext-loss-on-reconfigure
Merge into: lp://qastaging/qtmir
Diff against target: 92 lines (+31/-10)
3 files modified
src/platforms/mirserver/screensmodel.cpp (+29/-8)
src/platforms/mirserver/screensmodel.h (+2/-1)
src/platforms/mirserver/screenwindow.cpp (+0/-1)
To merge this branch: bzr merge lp://qastaging/~gerboland/qtmir/fix-glcontext-loss-on-reconfigure
Reviewer Review Type Date Requested Status
Daniel d'Andrada (community) Approve
Unity8 CI Bot (community) continuous-integration Approve
Review via email: mp+315065@code.qastaging.launchpad.net

Commit message

ScreenModel: Only expose windows on displays that are turned on

It seems the GL context Mir gives us for a display that is turned off is invalid. But there is no point rendering to a display that is turned off anyway.

To post a comment you must log in.
Revision history for this message
Gerry Boland (gerboland) wrote :

Handy test, grab
https://code.launchpad.net/~gerboland/+git/display-configurator
Run it with
./display-configurator -- --desktop_file_hint=gedit
and hit the letter "O" - big o. (I find you need to click on the surface for it to get input correctly)

The display should turn off.

P isn't turning it on yet - need to figure out why, if input is disabled or if QtMir isn't passing input to non-exposed windows or something.

To turn display on, kill the display-configurator process. Mir/U8 should revert to the previous state

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:587
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/449/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/3847
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/3875
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/3718
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/3718/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/3718
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/3718/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/3718
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/3718/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/3718
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/3718/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/3718
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/3718/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/3718
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/3718/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/449/rebuild

review: Approve (continuous-integration)
Revision history for this message
Daniel d'Andrada (dandrader) wrote :

should probably remove the binary and object file from the git repo of display-configurator

Revision history for this message
Daniel d'Andrada (dandrader) wrote :

Code looks ok. Passes manual test.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches