Merge lp:~henryhu/compiz/fix-place into lp:compiz/0.9.12

Proposed by Henry Hu
Status: Merged
Approved by: Stephen M. Webb
Approved revision: 3891
Merged at revision: 3892
Proposed branch: lp:~henryhu/compiz/fix-place
Merge into: lp:compiz/0.9.12
Diff against target: 14 lines (+2/-2)
1 file modified
plugins/place/place.xml.in (+2/-2)
To merge this branch: bzr merge lp:~henryhu/compiz/fix-place
Reviewer Review Type Date Requested Status
Stephen M. Webb Approve
Review via email: mp+238204@code.launchpad.net

Commit message

place plugin: correct min and default placement modes in configuration

Description of the change

fix the Placement Mode option in the place plugin

Currently, because the mismatch of possible values and min/max value, when you select one option for Placement Mode, exit ccsm, and start again, you would find that the option changed to another one.
This also makes the default install to maximize every window. The default value of this option is 0 which is illegal according to current min/max values (2/5).

This patch fixes this behavior. It changes the min value so it matches with the possible options.

To post a comment you must log in.
lp:~henryhu/compiz/fix-place updated
3891. By Henry Hu

change default to smart, according to the original intent

Revision history for this message
Henry Hu (henryhu) wrote :

Also change the default to smart. According to
http://bazaar.launchpad.net/~compiz-team/compiz/0.9.12/revision/2880.3.1
, this seems to be the original intent.

Revision history for this message
Henry Hu (henryhu) wrote :
Revision history for this message
Stephen M. Webb (bregma) wrote :

This was orginally "fixed" by bug #873384 in 2011 and then Ubuntu distro-patched it to work correctly in 2012. It should in fact have been fixed correctly upstream, and this MP does just that.

This will require unpatching the Ubuntu distro files, bit that can be done as a separate MP from a Ubuntu maintainer and the two MPs will need to land together.

Approved.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/place/place.xml.in'
2--- plugins/place/place.xml.in 2012-10-15 10:31:51 +0000
3+++ plugins/place/place.xml.in 2014-10-13 20:55:25 +0000
4@@ -20,8 +20,8 @@
5 <option name="mode" type="int">
6 <_short>Placement Mode</_short>
7 <_long>Algorithm to use for window placement</_long>
8- <default>0</default>
9- <min>2</min>
10+ <default>2</default>
11+ <min>0</min>
12 <max>5</max>
13 <desc>
14 <value>0</value>

Subscribers

People subscribed via source and target branches