Merge lp:~alan-griffiths/miral/BasicWindowManager-modify_window-doesnt-set-policy into lp:miral

Proposed by Alan Griffiths
Status: Merged
Approved by: Gerry Boland
Approved revision: 342
Merged at revision: 347
Proposed branch: lp:~alan-griffiths/miral/BasicWindowManager-modify_window-doesnt-set-policy
Merge into: lp:miral
Diff against target: 15 lines (+1/-4)
1 file modified
miral/basic_window_manager.cpp (+1/-4)
To merge this branch: bzr merge lp:~alan-griffiths/miral/BasicWindowManager-modify_window-doesnt-set-policy
Reviewer Review Type Date Requested Status
Gerry Boland (community) Approve
Review via email: mp+305942@code.launchpad.net

Commit message

BasicWindowManager::modify_window() shouldn't be calling constrain_resize() - that should be a policy decision.

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

Won't you update the TitleBarWMPolicy or CanonicalWMPolicy the compensate? To maintain their behaviour?

Revision history for this message
Gerry Boland (gerboland) :
review: Needs Information
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

> Won't you update the TitleBarWMPolicy or CanonicalWMPolicy the compensate? To
> maintain their behaviour?

TitlebarWindowManagerPolicy already calls constrain_resize(), CanonicalWindowManagerPolicy doesn't interpret input events, TilingWindowManagerPolicy does its own thing.

Revision history for this message
Gerry Boland (gerboland) wrote :

Ok

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'miral/basic_window_manager.cpp'
2--- miral/basic_window_manager.cpp 2016-09-16 11:25:07 +0000
3+++ miral/basic_window_manager.cpp 2016-09-16 12:05:02 +0000
4@@ -604,10 +604,7 @@
5
6 if (modifications.size().is_set())
7 {
8- Size new_size = modifications.size().value();
9-
10- window_info.constrain_resize(new_pos, new_size);
11- place_and_size(window_info, new_pos, new_size);
12+ place_and_size(window_info, new_pos, modifications.size().value());
13 }
14 else if (modifications.min_width().is_set() || modifications.min_height().is_set() ||
15 modifications.max_width().is_set() || modifications.max_height().is_set() ||

Subscribers

People subscribed via source and target branches