Merge lp://qastaging/~azzar1/unity/fix-797808 into lp://qastaging/unity
Proposed by
Andrea Azzarone
Status: | Merged |
---|---|
Approved by: | Mirco Müller |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1869 |
Proposed branch: | lp://qastaging/~azzar1/unity/fix-797808 |
Merge into: | lp://qastaging/unity |
Diff against target: |
48 lines (+26/-0) 2 files modified
manual-tests/AutoMaximize.txt (+19/-0) plugins/unityshell/src/PluginAdapter.cpp (+7/-0) |
To merge this branch: | bzr merge lp://qastaging/~azzar1/unity/fix-797808 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mirco Müller (community) | Approve | ||
Marco Biscaro (community) | Approve | ||
Review via email:
|
Description of the change
Window auto-maximise functionality should be disabled on monitors with a resolution above 1024 x 600.
To post a comment you must log in.
Will this work with rotated displays?
Example: I have my display (resolution: 1280x1024) connected in my notebook. If it's rotated, the working area will be 1024x1280. It's bigger, in area, than 1024x600, but the new condition will not be true (because the width is the same) and the automaximize will still enabled.
Maybe we should use area in this case? Something like:
if (screen_width * screen_height > THRESHOLD_WIDTH * THRESHOLD_HEIGHT)
{
return false;
}
And a minor thing: It's easier to access the bug report if the complete URL is put in comment (and not only the bug number). What do you think?