Mir

Merge lp://qastaging/~afrantzis/mir/fix-1511798-alternative into lp://qastaging/mir

Proposed by Alexandros Frantzis
Status: Rejected
Rejected by: Alexandros Frantzis
Proposed branch: lp://qastaging/~afrantzis/mir/fix-1511798-alternative
Merge into: lp://qastaging/mir
Diff against target: 280 lines (+156/-18)
5 files modified
src/server/scene/mediating_display_changer.cpp (+1/-1)
src/server/shell/abstract_shell.cpp (+20/-11)
tests/acceptance-tests/test_display_configuration.cpp (+3/-3)
tests/acceptance-tests/test_nested_mir.cpp (+82/-0)
tests/unit-tests/scene/test_abstract_shell.cpp (+50/-3)
To merge this branch: bzr merge lp://qastaging/~afrantzis/mir/fix-1511798-alternative
Reviewer Review Type Date Requested Status
Alan Griffiths Needs Fixing
PS Jenkins bot (community) continuous-integration Needs Fixing
Review via email: mp+276852@code.qastaging.launchpad.net

Commit message

shell: fix updating of display configuration when applications and nested servers exit

Description of the change

shell: fix updating of display configuration when applications and nested servers exit

The tests for nested mir behavior were cherrypicked from Alan's original proposal.

To post a comment you must log in.
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

I'm confused.

When I try the scenario in lp:1511798 I don't see an attempt to restore the host config after exiting the client. (But that's what display_configuration_reset_when_application_exits is supposed to test.)

I need to check what is different between the automated and manual test scenarios.

review: Abstain
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

> I'm confused.
>
> When I try the scenario in lp:1511798 I don't see an attempt to restore the
> host config after exiting the client. (But that's what
> display_configuration_reset_when_application_exits is supposed to test.)
>
> I need to check what is different between the automated and manual test
> scenarios.

I understand the difference - AbstractShell::focus_next_session() is selecting the dying surface's titlebar. (And that doesn't exist in the core WM that gets tested.)

I have to think about the right solution here.

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

I think the right solution is to move the "session->destroy_surface(surface);" call from AbstractShell::destroy_surface() to <Policy>::handle_delete_surface(). (There are four of these, plus DefaultWindowManager::remove_surface() in playground.)

It seems like a PITA, but this allows the window management policy control over the point at which the surface and decorations are destroyed.

review: Needs Fixing
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :
Revision history for this message
Alexandros Frantzis (afrantzis) wrote :

Rejected in favor of the other alternative.

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