Merge lp://qastaging/~azzar1/compiz-core/fix-919139 into lp://qastaging/compiz-core

Proposed by Andrea Azzarone
Status: Merged
Merged at revision: 3083
Proposed branch: lp://qastaging/~azzar1/compiz-core/fix-919139
Merge into: lp://qastaging/compiz-core
Diff against target: 87 lines (+9/-51)
2 files modified
plugins/scale/CMakeLists.txt (+1/-1)
plugins/scale/src/scale.cpp (+8/-50)
To merge this branch: bzr merge lp://qastaging/~azzar1/compiz-core/fix-919139
Reviewer Review Type Date Requested Status
Daniel van Vugt Approve
Review via email: mp+100156@code.qastaging.launchpad.net

Commit message

Change the behavior of the option "On all output devices."

Description of the change

== The problem ==
In multi-monitor environment, windows should spread on the monitor in which they reside.

== The fix ==
Change the behavior of the option "On all output devices."

== Test ==
Not yet implemented. I'd love to write unit-tests but I need to use CompWindow and I can't find an easy way to create a fake CompWindow (CompWindow has a private ctor) or to mock it.

To post a comment you must log in.
3081. By Andrea Azzarone

Fix coding style.

3082. By Andrea Azzarone

Don't use c++0x.

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

/home/dan/bzr/compiz-core/spread/plugins/scale/src/scale.cpp: In member function ‘SlotArea::vector PrivateScaleScreen::getSlotAreas()’:
/home/dan/bzr/compiz-core/spread/plugins/scale/src/scale.cpp:491:39: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]

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

Although, I can confirm after fixing the above error, it works perfectly. Windows do spread on the monitor they started on.

I'll fix the build failure when I merge.

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

We wanted to add tests, I'll do it in another branch :)

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