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
Reviewer Review Type Date Requested Status
Mirco Müller (community) Approve
Marco Biscaro (community) Approve
Review via email: mp+87854@code.qastaging.launchpad.net

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.
Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote :

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?

review: Needs Information
Revision history for this message
Andrea Azzarone (azzar1) wrote :

> 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;
> }
>

Makes sense. Done.

> 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?

Done.

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote :

Looks good!

review: Approve
Revision history for this message
Mirco Müller (macslow) wrote :

Code looks good and works ok. But please add a manual-test describing how to test this (lowering the resolution below the 1024x600 threshold with the system-settings for the display). Also the note about the automaximize-threshold set to 20 in ccsm (experimental-tab of unity-plugin) should be added. Otherwise the tester might be confused and assuming this fix doesn't work.

review: Needs Fixing
Revision history for this message
Andrea Azzarone (azzar1) wrote :

Done.

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote :

+1

review: Approve
Revision history for this message
Mirco Müller (macslow) wrote :

looking good now

review: Approve

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.