Merge lp:~dbarth/compcomm-plugins-main/0.9.5.94-changes into lp:~compiz/compcomm-plugins-main/ubuntu

Proposed by David Barth
Status: Merged
Merged at revision: 207
Proposed branch: lp:~dbarth/compcomm-plugins-main/0.9.5.94-changes
Merge into: lp:~compiz/compcomm-plugins-main/ubuntu
Diff against target: 201 lines (+77/-102)
4 files modified
debian/changelog (+11/-0)
debian/patches/01-grid-fix-rev87.patch (+65/-0)
debian/patches/01_grid_defaults.patch (+0/-100)
debian/patches/series (+1/-2)
To merge this branch: bzr merge lp:~dbarth/compcomm-plugins-main/0.9.5.94-changes
Reviewer Review Type Date Requested Status
compiz packagers Pending
Review via email: mp+74795@code.launchpad.net

Description of the change

0.9.5.94

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2011-08-24 16:39:30 +0000
3+++ debian/changelog 2011-09-09 14:08:22 +0000
4@@ -1,3 +1,14 @@
5+compiz-plugins-main (1:0.9.5.94-0ubuntu1~test2) oneiric; urgency=low
6+
7+ [ David Barth ]
8+ * Test build for release (0.9.5.94)
9+ * Removed patches integrated upstream:
10+ - debian/patches/01_grid_defaults.patch
11+ * Add another patch for the same grid, but with other changes
12+ - debian/patches/01-grid-fix-rev87.patch: prevent eye bleeding
13+
14+ -- David Barth <david.barth@canonical.com> Thu, 08 Sep 2011 19:07:46 +0200
15+
16 compiz-plugins-main (0.9.5.92.bzr17-0ubuntu1) oneiric; urgency=low
17
18 * New upstream version
19
20=== added file 'debian/patches/01-grid-fix-rev87.patch'
21--- debian/patches/01-grid-fix-rev87.patch 1970-01-01 00:00:00 +0000
22+++ debian/patches/01-grid-fix-rev87.patch 2011-09-09 14:08:22 +0000
23@@ -0,0 +1,65 @@
24+=== modified file 'src/grid.cpp'
25+--- compiz-plugins-main-0.9.5.94.orig/grid/src/grid.cpp 2011-08-25 10:50:22 +0000
26++++ compiz-plugins-main-0.9.5.94/grid/src/grid.cpp 2011-09-02 17:08:08 +0000
27+@@ -377,9 +377,8 @@
28+
29+ for (iter = animations.begin (); iter != animations.end () && animating; iter++)
30+ {
31+- GLushort *color;
32+ Animation& anim = *iter;
33+- float alpha = (float) optionGetFillColorAlpha () / 65535.0f * anim.opacity;
34++ float alpha = ((float) optionGetFillColorAlpha () / 65535.0f) * anim.opacity;
35+
36+ /* fill rectangle */
37+ glColor4f (((float) optionGetFillColorRed () / 65535.0f) * alpha,
38+@@ -397,16 +396,13 @@
39+ anim.currentRect.width () - 2,
40+ anim.currentRect.height () - 2);
41+
42+- /* draw outline */
43+- color = optionGetOutlineColor ();
44++ alpha = (float) (optionGetOutlineColorAlpha () / 65535.0f) * anim.opacity;
45+
46+ /* draw outline */
47+ glColor4f (((float) optionGetOutlineColorRed () / 65535.0f) * alpha,
48+ ((float) optionGetOutlineColorGreen () / 65535.0f) * alpha,
49+ ((float) optionGetOutlineColorBlue () / 65535.0f) * alpha,
50+- ((float) optionGetOutlineColorAlpha () / 65535.0f) * anim.opacity);
51+-
52+- glColor4us (color[0], color[1], color[2], anim.opacity * color[3]);
53++ alpha);
54+
55+ glLineWidth (2.0);
56+
57+@@ -421,7 +417,13 @@
58+ if (!animating)
59+ {
60+ /* fill rectangle */
61+- glColor4usv (optionGetFillColor ());
62++ float alpha = (float) optionGetFillColorAlpha () / 65535.0f;
63++
64++ /* fill rectangle */
65++ glColor4f (((float) optionGetFillColorRed () / 65535.0f) * alpha,
66++ ((float) optionGetFillColorGreen () / 65535.0f) * alpha,
67++ ((float) optionGetFillColorBlue () / 65535.0f) * alpha,
68++ alpha);
69+ glRecti (rect.x1 (), rect.y2 (), rect.x2 (), rect.y1 ());
70+
71+ /* Set outline rect smaller to avoid damage issues */
72+@@ -429,7 +431,14 @@
73+ rect.width () - 2, rect.height () - 2);
74+
75+ /* draw outline */
76+- glColor4usv (optionGetOutlineColor ());
77++ alpha = (float) optionGetOutlineColorAlpha () / 65535.0f;
78++
79++ /* draw outline */
80++ glColor4f (((float) optionGetOutlineColorRed () / 65535.0f) * alpha,
81++ ((float) optionGetOutlineColorGreen () / 65535.0f) * alpha,
82++ ((float) optionGetOutlineColorBlue () / 65535.0f) * alpha,
83++ alpha);
84++
85+ glLineWidth (2.0);
86+ glBegin (GL_LINE_LOOP);
87+ glVertex2i (rect.x1 (), rect.y1 ());
88+
89
90=== removed file 'debian/patches/01_grid_defaults.patch'
91--- debian/patches/01_grid_defaults.patch 2011-07-18 11:15:53 +0000
92+++ debian/patches/01_grid_defaults.patch 1970-01-01 00:00:00 +0000
93@@ -1,100 +0,0 @@
94-Index: compiz-plugins-main-0.9.5.0/grid/grid.xml.in
95-===================================================================
96---- compiz-plugins-main-0.9.5.0.orig/grid/grid.xml.in 2011-07-13 15:46:36.000000000 +0200
97-+++ compiz-plugins-main-0.9.5.0/grid/grid.xml.in 2011-07-18 13:12:14.637756823 +0200
98-@@ -84,7 +84,7 @@
99- <option name="top_left_corner_action" type="int">
100- <_short>Upper Left Corner</_short>
101- <_long>Action to be performed when window is dropped on the top left corner</_long>
102-- <default>7</default>
103-+ <default>4</default>
104- <min>0</min>
105- <max>10</max>
106- <desc>
107-@@ -186,7 +186,7 @@
108- <option name="top_right_corner_action" type="int">
109- <_short>Upper Right Corner</_short>
110- <_long>Action to be performed when window is dropped on the top right corner</_long>
111-- <default>9</default>
112-+ <default>6</default>
113- <min>0</min>
114- <max>10</max>
115- <desc>
116-@@ -339,7 +339,7 @@
117- <option name="bottom_left_corner_action" type="int">
118- <_short>Bottom Left Corner</_short>
119- <_long>Action to be performed when window is dropped on the bottom left corner</_long>
120-- <default>1</default>
121-+ <default>4</default>
122- <min>0</min>
123- <max>10</max>
124- <desc>
125-@@ -390,7 +390,7 @@
126- <option name="bottom_edge_action" type="int">
127- <_short>Bottom Edge</_short>
128- <_long>Action to be performed when window is dropped on the bottom edge</_long>
129-- <default>2</default>
130-+ <default>0</default>
131- <min>0</min>
132- <max>10</max>
133- <desc>
134-@@ -441,7 +441,7 @@
135- <option name="bottom_right_corner_action" type="int">
136- <_short>Bottom Right Corner</_short>
137- <_long>Action to be performed when window is dropped on the bottom right corner</_long>
138-- <default>3</default>
139-+ <default>6</default>
140- <min>0</min>
141- <max>10</max>
142- <desc>
143-@@ -505,21 +505,21 @@
144- <option name="left_edge_threshold" type="int">
145- <_short>Left Edge</_short>
146- <_long>Maximum number of pixels from the left edge a window can be dropped</_long>
147-- <default>5</default>
148-+ <default>15</default>
149- <min>0</min>
150- <max>500</max>
151- </option>
152- <option name="right_edge_threshold" type="int">
153- <_short>Right Edge</_short>
154- <_long>Maximum number of pixels from the right edge a window can be dropped</_long>
155-- <default>5</default>
156-+ <default>15</default>
157- <min>0</min>
158- <max>500</max>
159- </option>
160- <option name="top_edge_threshold" type="int">
161- <_short>Top Edge</_short>
162- <_long>Maximum number of pixels from the top edge a window can be dropped</_long>
163-- <default>5</default>
164-+ <default>20</default>
165- <min>0</min>
166- <max>500</max>
167- </option>
168-@@ -543,9 +543,9 @@
169- <_short>Outline Color</_short>
170- <_long>Color of the resize indicator outline</_long>
171- <default>
172-- <red>0x2f2f</red>
173-- <green>0x2f2f</green>
174-- <blue>0x4f4f</blue>
175-+ <red>0xfbfb</red>
176-+ <green>0x8b8b</green>
177-+ <blue>0x0</blue>
178- <alpha>0x9f9f</alpha>
179- </default>
180- </option>
181-@@ -553,9 +553,9 @@
182- <_short>Fill Color</_short>
183- <_long>Fill color of the resize indicator</_long>
184- <default>
185-- <red>0x2f2f</red>
186-- <green>0x2f2f</green>
187-- <blue>0x4f4f</blue>
188-+ <red>0xfbfb</red>
189-+ <green>0x8b8b</green>
190-+ <blue>0x0</blue>
191- <alpha>0x4f4f</alpha>
192- </default>
193- </option>
194
195=== modified file 'debian/patches/series'
196--- debian/patches/series 2011-08-24 16:37:36 +0000
197+++ debian/patches/series 2011-09-09 14:08:22 +0000
198@@ -1,2 +1,1 @@
199-01_grid_defaults.patch
200-
201+01-grid-fix-rev87.patch

Subscribers

People subscribed via source and target branches

to all changes: