Merge lp:~gerboland/qtmir/fix-glcontext-loss-on-reconfigure into lp:qtmir
Proposed by
Gerry Boland
Status: | Merged |
---|---|
Approved by: | Daniel d'Andrada |
Approved revision: | 587 |
Merged at revision: | 600 |
Proposed branch: | lp:~gerboland/qtmir/fix-glcontext-loss-on-reconfigure |
Merge into: | lp: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:~gerboland/qtmir/fix-glcontext-loss-on-reconfigure |
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel d'Andrada (community) | Approve | ||
Unity8 CI Bot (community) | continuous-integration | Approve | |
Review via email: mp+315065@code.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.
Handy test, grab /code.launchpad .net/~gerboland /+git/display- configurator configurator -- --desktop_ file_hint= gedit
https:/
Run it with
./display-
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