Merge lp:~raof/mir/notify-shell-of-display-configuration into lp:mir
Status: | Rejected |
---|---|
Rejected by: | Chris Halse Rogers |
Proposed branch: | lp:~raof/mir/notify-shell-of-display-configuration |
Merge into: | lp:mir |
Diff against target: |
245 lines (+179/-1) 4 files modified
include/server/mir/shell/display_configuration_controller.h (+17/-0) src/server/scene/mediating_display_changer.cpp (+16/-1) src/server/scene/mediating_display_changer.h (+5/-0) tests/unit-tests/scene/test_mediating_display_changer.cpp (+141/-0) |
To merge this branch: | bzr merge lp:~raof/mir/notify-shell-of-display-configuration |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alan Griffiths | Disapprove | ||
Cemil Azizoglu (community) | Approve | ||
Daniel van Vugt | Abstain | ||
Mir CI Bot | continuous-integration | Approve | |
Review via email: mp+305189@code.launchpad.net |
Commit message
Add a notification mechanism for display configuration changes.
I noticed that we don't currently have any way to get notified when the display configuration has changed; this is one of the major pieces of awkwardness in our display configuration tests.
This is also going to be awkward for shells. Indeed, adding this is a prerequisite for fixing LP: 1556142.
Unmerged revisions
- 3695. By Chris Halse Rogers
-
...and moke set_configured_
callback threadsafe. - 3694. By Chris Halse Rogers
-
More complete and correct set_configured_
callback( ) - 3693. By Chris Halse Rogers
-
Add (start of) a configured-
notification to msh::DisplayCon figurationContr oller() . There are all sorts of times that it'd be useful in our test code to know when a configuration
change had occurred, and I'm sure that shells will find it equally useful.
"I noticed that we don't currently have any way to get notified when the display configuration has changed; this is one of the major pieces of awkwardness in our display configuration tests."
Not entirely true: I have successfully implemented miral:: ActiveOutputsMo nitor to provide notifications when the display configuration changes.