Merge lp://staging/~azzar1/compiz/fix-874146 into lp://staging/compiz/0.9.9

Proposed by Andrea Azzarone
Status: Merged
Approved by: Andrea Azzarone
Approved revision: 3522
Merged at revision: 3522
Proposed branch: lp://staging/~azzar1/compiz/fix-874146
Merge into: lp://staging/compiz/0.9.9
Diff against target: 13 lines (+3/-0)
1 file modified
src/window.cpp (+3/-0)
To merge this branch: bzr merge lp://staging/~azzar1/compiz/fix-874146
Reviewer Review Type Date Requested Status
Łukasz Zemczak Approve
Daniel van Vugt Abstain
Sam Spilsbury Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+139116@code.staging.launchpad.net

Commit message

Fix bug 874146 passing valid xwc.width/height through validateResizeRequest.

Description of the change

== Problem ==
Bug #874146: Multimonitor: New windows open on the wrong monitor.

Step to reproduce the bug:
# Setup a dual monitor with the smaller monitor (yes you need two monitors of different sizes) on the left.
# Open gedit (left monitor)
# Open a gedit dialog (open with, preferences, etc.)
Expected: Dialog should open on the left monitor.
Observed: Dialog opens on the right monitor.

== Fix ==
Pass valid xwc.width/height through validateResizeRequest. PlaceWindow::validateResizeRequest does use these values.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Sam Spilsbury (smspillaz) wrote :

As discussed on IRC test automation would require significant change and
wouldn't effectively test this change.
On 11/12/2012 7:24 AM, "Andrea Azzarone" <email address hidden> wrote:

> Andrea Azzarone has proposed merging lp:~andyrock/compiz/fix-874146 into
> lp:compiz.
>
> Commit message:
> Fix bug 874146 passing valid xwc.width/height through
> validateResizeRequest.
>
> Requested reviews:
> Compiz Maintainers (compiz-team)
> Related bugs:
> Bug #874146 in Compiz: "Multimonitor: New windows open on the wrong
> monitor, Place Plugin settings silently ignored"
> https://bugs.launchpad.net/compiz/+bug/874146
>
> For more details, see:
> https://code.launchpad.net/~andyrock/compiz/fix-874146/+merge/139116
>
> == Problem ==
> Bug #874146: Multimonitor: New windows open on the wrong monitor.
>
> Step to reproduce the bug:
> # Setup a dual monitor with the smaller monitor (yes you need two monitors
> of different sizes) on the left.
> # Open gedit (left monitor)
> # Open a gedit dialog (open with, preferences, etc.)
> # The dialog should open in the right monitor (BUG!!)
>
> == Fix ==
> Pass valid xwc.width/height through validateResizeRequest.
> PlaceWindow::validateResizeRequest does use these values.
> --
> https://code.launchpad.net/~andyrock/compiz/fix-874146/+merge/139116
> Your team Compiz Maintainers is requested to review the proposed merge of
> lp:~andyrock/compiz/fix-874146 into lp:compiz.
>
> === modified file 'src/window.cpp'
> --- src/window.cpp 2012-12-10 03:28:47 +0000
> +++ src/window.cpp 2012-12-10 23:18:21 +0000
> @@ -5429,6 +5429,9 @@
>
> xwcm = adjustConfigureRequestForGravity (&xwc, CWX | CWY, gravity,
> 1);
>
> + xwc.width = priv->serverGeometry.width ();
> + xwc.height = priv->serverGeometry.height ();
> +
> window->validateResizeRequest (xwcm, &xwc, ClientTypeApplication);
>
> CompPoint pos (xwc.x, xwc.y);
>
>
>

Revision history for this message
Sam Spilsbury (smspillaz) :
review: Approve
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

The test case sounds more like bug 754508 than bug 874146 (which was meant to describe applications opening on the wrong monitor).

Does this really fix bug 874146? Does it fix both? Or just bug 754508 as the manual test case seems to suggest?

review: Needs Information
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Also, when you say "The dialog should open in the right monitor (BUG!!)", do you mean to say:
  Expected: Dialog should open on the left monitor.
  Observed: Dialog opens on the right monitor.
?

That would sound more correct to me, however I cannot reproduce such a bug right now. The dialogs are correctly opening on the left monitor where the application is.

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

> The test case sounds more like bug 754508 than bug 874146 (which was meant to
> describe applications opening on the wrong monitor).
>
> Does this really fix bug 874146? Does it fix both? Or just bug 754508 as the
> manual test case seems to suggest?

Should fix both (maybe we can mark them as duplicates).

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

> Also, when you say "The dialog should open in the right monitor (BUG!!)", do
> you mean to say:
> Expected: Dialog should open on the left monitor.
> Observed: Dialog opens on the right monitor.
> ?
>

That's what I mean sorry.

> That would sound more correct to me, however I cannot reproduce such a bug
> right now. The dialogs are correctly opening on the left monitor where the
> application is.

Is place plugin active? Do you have a multimonitor with monitors of different sizes?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Yes place is active and yes I was using different resolutions as instructed.

I've just changed video cards and will retest. I'll also check if the placement mode is a factor.

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

> Yes place is active and yes I was using different resolutions as instructed.
>
> I've just changed video cards and will retest. I'll also check if the
> placement mode is a factor.

Make sure that ccsm->General options->Display settings->Overlapping output handling is Smart.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Yes that's set to Smart. And I still can't reproduce any bug. Can't reproduce any regression either.

I give up. Abstain.

review: Abstain
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

+1

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.

Subscribers

People subscribed via source and target branches