Merge lp:~ksamak/compiz/switcher_add_size_multiplier into lp:compiz/0.9.13
- switcher_add_size_multiplier
- Merge into 0.9.13
Status: | Merged |
---|---|
Approved by: | Marco Trevisan (Treviño) |
Approved revision: | 4070 |
Merged at revision: | 4076 |
Proposed branch: | lp:~ksamak/compiz/switcher_add_size_multiplier |
Merge into: | lp:compiz/0.9.13 |
Diff against target: |
309 lines (+93/-55) 3 files modified
plugins/switcher/src/switcher.cpp (+73/-52) plugins/switcher/src/switcher.h (+12/-3) plugins/switcher/switcher.xml.in (+8/-0) |
To merge this branch: | bzr merge lp:~ksamak/compiz/switcher_add_size_multiplier |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Marco Trevisan (Treviño) | Approve | ||
ksamak (community) | Needs Resubmitting | ||
Sam Spilsbury | style, code, functionality | Needs Fixing | |
Review via email:
|
This proposal supersedes a proposal from 2016-07-04.
Commit message
switcher: adds a size multiplier for A11Y purposes (sight impaired people)
Description of the change
this patch adds a size modifier to the base switcher, for sight impaired people.
It allows to set a variable in ccsm that will make the switchWindow bigger
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Marco Trevisan (Treviño) (3v1n0) wrote : Posted in a previous version of this proposal | # |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
ksamak (ksamak) wrote : Posted in a previous version of this proposal | # |
On Tue, Jul 05, 2016 at 10:38:13AM -0000, Marco Trevisan (Treviño) wrote:
> I see some indentation issues, but a part from that it looks ok
You want me to have a look, and try to straighten that?
i guess should re-request a merge then.
--
Ksamak
hypra.fr Team
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Marco Trevisan (Treviño) (3v1n0) wrote : Posted in a previous version of this proposal | # |
No need to re-request a merge. Just update this branch; MP will update automatically.
Just comment here once you've done.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
ksamak (ksamak) wrote : Posted in a previous version of this proposal | # |
indents modifs done.
I just remember i need to set noexpandtab in my vim. differences didn't appear in my buffer.
don't know if you can squash commits with bzr too (like in git) to get rid of parasite revisions.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Sam Spilsbury (smspillaz) wrote : | # |
Thanks for the patch ksamak. It is important that the existing plugins can accommodate users with a need to magnify on-screen widgets, so this is valuable work.
I've noted a few things which should be fixed before this is merged in.
As for squashing commits - it might be possible to do that, but it isn't recommended. Bazaar's history is intended to be immutable. After having used git for a few years, I'm not the biggest fan of this design, but it is what it is.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Sam Spilsbury (smspillaz) : | # |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
ksamak (ksamak) wrote : | # |
Hi sam, and thank you for the review.
I fixed the coding style, according to the original indents, although i don't fully understand why there could be eg: 4 spaces, then 2 tabs, then 2 spaces in some lines ;-)
I took into account your comments on float multiplications of course, i should have seen that on my own...
I also deleted the boolean flag switch, which appeared to work in one of my tests (in a VM), but was apparently a twitch in gsettings.
thanks again, hope this revision is up to standards.
- 4070. By ksamak <ksamak@ksalaptop>
-
switcher: fixed typo
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Marco Trevisan (Treviño) (3v1n0) wrote : | # |
Fine for me
Preview Diff
1 | === modified file 'plugins/switcher/src/switcher.cpp' | |||
2 | --- plugins/switcher/src/switcher.cpp 2015-08-22 21:46:01 +0000 | |||
3 | +++ plugins/switcher/src/switcher.cpp 2016-07-20 09:53:18 +0000 | |||
4 | @@ -20,7 +20,9 @@ | |||
5 | 20 | * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION | 20 | * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION |
6 | 21 | * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 21 | * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
7 | 22 | * | 22 | * |
9 | 23 | * Author: David Reveman <davidr@novell.com> | 23 | * Author(s): |
10 | 24 | * - David Reveman <davidr@novell.com> | ||
11 | 25 | * - Auboyneau Vincent <ksamak@riseup.net> (size multiplier for A11Y) | ||
12 | 24 | */ | 26 | */ |
13 | 25 | 27 | ||
14 | 26 | #include "switcher.h" | 28 | #include "switcher.h" |
15 | @@ -35,36 +37,6 @@ | |||
16 | 35 | 37 | ||
17 | 36 | #define XWINDOWCHANGES_INIT {0, 0, 0, 0, 0, None, 0} | 38 | #define XWINDOWCHANGES_INIT {0, 0, 0, 0, 0, None, 0} |
18 | 37 | 39 | ||
19 | 38 | static float _boxVertices[] = | ||
20 | 39 | { | ||
21 | 40 | -(WIDTH >> 1), BOX_WIDTH, 0.0f, | ||
22 | 41 | (WIDTH >> 1), BOX_WIDTH, 0.0f, | ||
23 | 42 | -(WIDTH >> 1), 0.0f, 0.0f, | ||
24 | 43 | -(WIDTH >> 1), 0.0f, 0.0f, | ||
25 | 44 | (WIDTH >> 1), BOX_WIDTH, 0.0f, | ||
26 | 45 | (WIDTH >> 1), 0.0f, 0.0f, | ||
27 | 46 | |||
28 | 47 | -(WIDTH >> 1), HEIGHT - BOX_WIDTH, 0.0f, | ||
29 | 48 | -(WIDTH >> 1) + BOX_WIDTH, HEIGHT - BOX_WIDTH, 0.0f, | ||
30 | 49 | -(WIDTH >> 1), BOX_WIDTH, 0.0f, | ||
31 | 50 | -(WIDTH >> 1), BOX_WIDTH, 0.0f, | ||
32 | 51 | -(WIDTH >> 1) + BOX_WIDTH, HEIGHT - BOX_WIDTH, 0.0f, | ||
33 | 52 | -(WIDTH >> 1) + BOX_WIDTH, BOX_WIDTH, 0.0f, | ||
34 | 53 | |||
35 | 54 | (WIDTH >> 1) - BOX_WIDTH, HEIGHT - BOX_WIDTH, 0.0f, | ||
36 | 55 | (WIDTH >> 1), HEIGHT - BOX_WIDTH, 0.0f, | ||
37 | 56 | (WIDTH >> 1) - BOX_WIDTH, BOX_WIDTH, 0.0f, | ||
38 | 57 | (WIDTH >> 1) - BOX_WIDTH, BOX_WIDTH, 0.0f, | ||
39 | 58 | (WIDTH >> 1), HEIGHT - BOX_WIDTH, 0.0f, | ||
40 | 59 | (WIDTH >> 1), BOX_WIDTH, 0.0f, | ||
41 | 60 | |||
42 | 61 | -(WIDTH >> 1), HEIGHT, 0.0f, | ||
43 | 62 | (WIDTH >> 1), HEIGHT, 0.0f, | ||
44 | 63 | -(WIDTH >> 1), HEIGHT - BOX_WIDTH, 0.0f, | ||
45 | 64 | -(WIDTH >> 1), HEIGHT - BOX_WIDTH, 0.0f, | ||
46 | 65 | (WIDTH >> 1), HEIGHT, 0.0f, | ||
47 | 66 | (WIDTH >> 1), HEIGHT - BOX_WIDTH, 0.0f, | ||
48 | 67 | }; | ||
49 | 68 | 40 | ||
50 | 69 | void | 41 | void |
51 | 70 | SwitchScreen::updateWindowList (int count) | 42 | SwitchScreen::updateWindowList (int count) |
52 | @@ -78,7 +50,7 @@ | |||
53 | 78 | count = 3; | 50 | count = 3; |
54 | 79 | } | 51 | } |
55 | 80 | 52 | ||
57 | 81 | pos = ((count >> 1) - (int)windows.size ()) * WIDTH; | 53 | pos = ((count >> 1) - (int)windows.size ()) * modifiedWidth; |
58 | 82 | move = 0; | 54 | move = 0; |
59 | 83 | 55 | ||
60 | 84 | selectedWindow = windows.front (); | 56 | selectedWindow = windows.front (); |
61 | @@ -184,9 +156,9 @@ | |||
62 | 184 | SwitchScreen::handleSelectionChange (bool toNext, int nextIdx) | 156 | SwitchScreen::handleSelectionChange (bool toNext, int nextIdx) |
63 | 185 | { | 157 | { |
64 | 186 | if (toNext) | 158 | if (toNext) |
66 | 187 | move -= WIDTH; | 159 | move -= modifiedWidth; |
67 | 188 | else | 160 | else |
69 | 189 | move += WIDTH; | 161 | move += modifiedWidth; |
70 | 190 | 162 | ||
71 | 191 | moreAdjust = true; | 163 | moreAdjust = true; |
72 | 192 | } | 164 | } |
73 | @@ -532,7 +504,7 @@ | |||
74 | 532 | 504 | ||
75 | 533 | updateWindowList (count); | 505 | updateWindowList (count); |
76 | 534 | 506 | ||
78 | 535 | allWindowsWidth = windows.size () * WIDTH; | 507 | allWindowsWidth = windows.size () * modifiedWidth; |
79 | 536 | 508 | ||
80 | 537 | foreach (CompWindow *win, windows) | 509 | foreach (CompWindow *win, windows) |
81 | 538 | { | 510 | { |
82 | @@ -541,7 +513,7 @@ | |||
83 | 541 | if (selectedWindow == selected) | 513 | if (selectedWindow == selected) |
84 | 542 | break; | 514 | break; |
85 | 543 | 515 | ||
87 | 544 | pos -= WIDTH; | 516 | pos -= modifiedWidth; |
88 | 545 | if (pos < -allWindowsWidth) | 517 | if (pos < -allWindowsWidth) |
89 | 546 | pos += allWindowsWidth; | 518 | pos += allWindowsWidth; |
90 | 547 | } | 519 | } |
91 | @@ -650,7 +622,7 @@ | |||
92 | 650 | float amount, chunk; | 622 | float amount, chunk; |
93 | 651 | int allWindowsWidth; | 623 | int allWindowsWidth; |
94 | 652 | 624 | ||
96 | 653 | allWindowsWidth = windows.size () * WIDTH; | 625 | allWindowsWidth = windows.size () * modifiedWidth; |
97 | 654 | 626 | ||
98 | 655 | amount = msSinceLastPaint * 0.05f * optionGetSpeed (); | 627 | amount = msSinceLastPaint * 0.05f * optionGetSpeed (); |
99 | 656 | steps = amount / (0.5f * optionGetTimestep ()); | 628 | steps = amount / (0.5f * optionGetTimestep ()); |
100 | @@ -878,10 +850,10 @@ | |||
101 | 878 | mask, | 850 | mask, |
102 | 879 | x, | 851 | x, |
103 | 880 | y, | 852 | y, |
108 | 881 | WIDTH - (SPACE << 1), | 853 | sScreen->modifiedWidth - (SPACE << 1), |
109 | 882 | HEIGHT - (SPACE << 1), | 854 | sScreen->modifiedHeight - (SPACE << 1), |
110 | 883 | WIDTH - (WIDTH >> 2), | 855 | sScreen->modifiedWidth - (sScreen->modifiedWidth >> 2), |
111 | 884 | HEIGHT - (HEIGHT >> 2)); | 856 | sScreen->modifiedHeight - (sScreen->modifiedHeight >> 2)); |
112 | 885 | } | 857 | } |
113 | 886 | 858 | ||
114 | 887 | void | 859 | void |
115 | @@ -901,8 +873,8 @@ | |||
116 | 901 | else | 873 | else |
117 | 902 | sAttrib.xScale = sAttrib.yScale; | 874 | sAttrib.xScale = sAttrib.yScale; |
118 | 903 | 875 | ||
121 | 904 | wx = x + WIDTH - icon->width () * sAttrib.xScale - SPACE; | 876 | wx = x + sScreen->modifiedWidth - icon->width () * sAttrib.xScale - SPACE; |
122 | 905 | wy = y + HEIGHT - icon->height () * sAttrib.yScale - SPACE; | 877 | wy = y + sScreen->modifiedWidth - icon->height () * sAttrib.yScale - SPACE; |
123 | 906 | } | 878 | } |
124 | 907 | 879 | ||
125 | 908 | void | 880 | void |
126 | @@ -931,8 +903,8 @@ | |||
127 | 931 | width = icon->width () * sAttrib.xScale; | 903 | width = icon->width () * sAttrib.xScale; |
128 | 932 | height = icon->height () * sAttrib.yScale; | 904 | height = icon->height () * sAttrib.yScale; |
129 | 933 | 905 | ||
132 | 934 | wx = x + SPACE + ((WIDTH - (SPACE << 1)) - width) / 2; | 906 | wx = x + SPACE + (sScreen->modifiedWidth - (SPACE << 1) - width) / 2; |
133 | 935 | wy = y + SPACE + ((HEIGHT - (SPACE << 1)) - height) / 2; | 907 | wy = y + SPACE + (sScreen->modifiedHeight - (SPACE << 1) - height) / 2; |
134 | 936 | } | 908 | } |
135 | 937 | 909 | ||
136 | 938 | void | 910 | void |
137 | @@ -943,8 +915,8 @@ | |||
138 | 943 | float width, | 915 | float width, |
139 | 944 | float height) | 916 | float height) |
140 | 945 | { | 917 | { |
143 | 946 | wx = x + SPACE + ((WIDTH - (SPACE << 1)) - width) / 2; | 918 | wx = x + SPACE + (sScreen->modifiedWidth - (SPACE << 1) - width) / 2; |
144 | 947 | wy = y + SPACE + ((HEIGHT - (SPACE << 1)) - height) / 2; | 919 | wy = y + SPACE + (sScreen->modifiedHeight - (SPACE << 1) - height) / 2; |
145 | 948 | } | 920 | } |
146 | 949 | 921 | ||
147 | 950 | 922 | ||
148 | @@ -993,10 +965,11 @@ | |||
149 | 993 | 965 | ||
150 | 994 | foreach (CompWindow *w, sScreen->windows) | 966 | foreach (CompWindow *w, sScreen->windows) |
151 | 995 | { | 967 | { |
153 | 996 | if (x + WIDTH > x1) | 968 | if (x + sScreen->modifiedWidth > x1) { |
154 | 997 | SwitchWindow::get (w)->paintThumb (gWindow->lastPaintAttrib (), | 969 | SwitchWindow::get (w)->paintThumb (gWindow->lastPaintAttrib (), |
155 | 998 | transform, mask, x, y); | 970 | transform, mask, x, y); |
157 | 999 | x += WIDTH; | 971 | } |
158 | 972 | x += sScreen->modifiedWidth; | ||
159 | 1000 | } | 973 | } |
160 | 1001 | 974 | ||
161 | 1002 | foreach (CompWindow *w, sScreen->windows) | 975 | foreach (CompWindow *w, sScreen->windows) |
162 | @@ -1006,7 +979,7 @@ | |||
163 | 1006 | 979 | ||
164 | 1007 | SwitchWindow::get (w)->paintThumb (gWindow->lastPaintAttrib (), | 980 | SwitchWindow::get (w)->paintThumb (gWindow->lastPaintAttrib (), |
165 | 1008 | transform, mask, x, y); | 981 | transform, mask, x, y); |
167 | 1009 | x += WIDTH; | 982 | x += sScreen->modifiedWidth; |
168 | 1010 | } | 983 | } |
169 | 1011 | 984 | ||
170 | 1012 | glDisable (GL_SCISSOR_TEST); | 985 | glDisable (GL_SCISSOR_TEST); |
171 | @@ -1025,7 +998,7 @@ | |||
172 | 1025 | streamingBuffer->begin (GL_TRIANGLES); | 998 | streamingBuffer->begin (GL_TRIANGLES); |
173 | 1026 | 999 | ||
174 | 1027 | streamingBuffer->addColors (1, color); | 1000 | streamingBuffer->addColors (1, color); |
176 | 1028 | streamingBuffer->addVertices (24, _boxVertices); | 1001 | streamingBuffer->addVertices (24, sScreen->_boxVertices); |
177 | 1029 | 1002 | ||
178 | 1030 | streamingBuffer->end (); | 1003 | streamingBuffer->end (); |
179 | 1031 | streamingBuffer->render (wTransform, attrib); | 1004 | streamingBuffer->render (wTransform, attrib); |
180 | @@ -1102,6 +1075,48 @@ | |||
181 | 1102 | 1075 | ||
182 | 1103 | } | 1076 | } |
183 | 1104 | 1077 | ||
184 | 1078 | void SwitchScreen::setSizeMultiplier () { | ||
185 | 1079 | sizeMultiplier = optionGetSizeMultiplier (); | ||
186 | 1080 | |||
187 | 1081 | modifiedWidth = static_cast<int> (WIDTH * sizeMultiplier); | ||
188 | 1082 | modifiedHeight = static_cast<int> (HEIGHT * sizeMultiplier); | ||
189 | 1083 | |||
190 | 1084 | float width = (WIDTH >> 1) * sizeMultiplier; | ||
191 | 1085 | float height = HEIGHT * sizeMultiplier; | ||
192 | 1086 | float box_width = BOX_WIDTH * sizeMultiplier; | ||
193 | 1087 | float boxVertices[72] = | ||
194 | 1088 | { | ||
195 | 1089 | -width, box_width, 0.0f, | ||
196 | 1090 | width, box_width, 0.0f, | ||
197 | 1091 | -width, 0.0f, 0.0f, | ||
198 | 1092 | -width, 0.0f, 0.0f, | ||
199 | 1093 | width, box_width, 0.0f, | ||
200 | 1094 | width, 0.0f, 0.0f, | ||
201 | 1095 | |||
202 | 1096 | -width, height - box_width, 0.0f, | ||
203 | 1097 | -width + box_width, height - box_width, 0.0f, | ||
204 | 1098 | -width, box_width, 0.0f, | ||
205 | 1099 | -width, box_width, 0.0f, | ||
206 | 1100 | -width + box_width, height - box_width, 0.0f, | ||
207 | 1101 | -width + box_width, box_width, 0.0f, | ||
208 | 1102 | |||
209 | 1103 | width - box_width, height - box_width, 0.0f, | ||
210 | 1104 | width, height - box_width, 0.0f, | ||
211 | 1105 | width - box_width, box_width, 0.0f, | ||
212 | 1106 | width - box_width, box_width, 0.0f, | ||
213 | 1107 | width, height - box_width, 0.0f, | ||
214 | 1108 | width, box_width, 0.0f, | ||
215 | 1109 | |||
216 | 1110 | -width, height, 0.0f, | ||
217 | 1111 | width, height, 0.0f, | ||
218 | 1112 | -width, height - box_width, 0.0f, | ||
219 | 1113 | -width, height - box_width, 0.0f, | ||
220 | 1114 | width, height, 0.0f, | ||
221 | 1115 | width, height - box_width, 0.0f, | ||
222 | 1116 | }; | ||
223 | 1117 | std::copy (boxVertices, boxVertices + 72, _boxVertices); | ||
224 | 1118 | } | ||
225 | 1119 | |||
226 | 1105 | SwitchScreen::SwitchScreen (CompScreen *screen) : | 1120 | SwitchScreen::SwitchScreen (CompScreen *screen) : |
227 | 1106 | BaseSwitchScreen (screen), | 1121 | BaseSwitchScreen (screen), |
228 | 1107 | PluginClassHandler<SwitchScreen,CompScreen> (screen), | 1122 | PluginClassHandler<SwitchScreen,CompScreen> (screen), |
229 | @@ -1115,7 +1130,10 @@ | |||
230 | 1115 | pos (0), | 1130 | pos (0), |
231 | 1116 | move (0), | 1131 | move (0), |
232 | 1117 | translate (0.0), | 1132 | translate (0.0), |
234 | 1118 | sTranslate (0.0) | 1133 | sTranslate (0.0), |
235 | 1134 | sizeMultiplier (1), | ||
236 | 1135 | modifiedWidth (WIDTH), | ||
237 | 1136 | modifiedHeight (HEIGHT) | ||
238 | 1119 | { | 1137 | { |
239 | 1120 | zoom = optionGetZoom () / 30.0f; | 1138 | zoom = optionGetZoom () / 30.0f; |
240 | 1121 | 1139 | ||
241 | @@ -1123,6 +1141,9 @@ | |||
242 | 1123 | 1141 | ||
243 | 1124 | optionSetZoomNotify (boost::bind (&SwitchScreen::setZoom, this)); | 1142 | optionSetZoomNotify (boost::bind (&SwitchScreen::setZoom, this)); |
244 | 1125 | 1143 | ||
245 | 1144 | setSizeMultiplier (); | ||
246 | 1145 | optionSetSizeMultiplierNotify (boost::bind (&SwitchScreen::setSizeMultiplier, this)); | ||
247 | 1146 | |||
248 | 1126 | auto bgUpdater = [=] (...){ this->updateBackground (this->optionGetUseBackgroundColor (), this->optionGetBackgroundColor ());}; | 1147 | auto bgUpdater = [=] (...){ this->updateBackground (this->optionGetUseBackgroundColor (), this->optionGetBackgroundColor ());}; |
249 | 1127 | optionSetUseBackgroundColorNotify (bgUpdater); | 1148 | optionSetUseBackgroundColorNotify (bgUpdater); |
250 | 1128 | optionSetBackgroundColorNotify (bgUpdater); | 1149 | optionSetBackgroundColorNotify (bgUpdater); |
251 | 1129 | 1150 | ||
252 | === modified file 'plugins/switcher/src/switcher.h' | |||
253 | --- plugins/switcher/src/switcher.h 2015-08-22 21:46:01 +0000 | |||
254 | +++ plugins/switcher/src/switcher.h 2016-07-20 09:53:18 +0000 | |||
255 | @@ -20,7 +20,9 @@ | |||
256 | 20 | * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION | 20 | * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION |
257 | 21 | * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 21 | * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
258 | 22 | * | 22 | * |
260 | 23 | * Author: David Reveman <davidr@novell.com> | 23 | * Author(s): |
261 | 24 | * - David Reveman <davidr@novell.com> | ||
262 | 25 | * - Auboyneau Vincent <ksamak@riseup.net> (size multiplier for A11Y) | ||
263 | 24 | */ | 26 | */ |
264 | 25 | 27 | ||
265 | 26 | #include <stdio.h> | 28 | #include <stdio.h> |
266 | @@ -96,6 +98,13 @@ | |||
267 | 96 | 98 | ||
268 | 97 | float translate; | 99 | float translate; |
269 | 98 | float sTranslate; | 100 | float sTranslate; |
270 | 101 | |||
271 | 102 | void setSizeMultiplier (); | ||
272 | 103 | float sizeMultiplier; | ||
273 | 104 | int modifiedWidth; | ||
274 | 105 | int modifiedHeight; | ||
275 | 106 | float _boxVertices[72]; | ||
276 | 107 | |||
277 | 99 | }; | 108 | }; |
278 | 100 | 109 | ||
279 | 101 | class SwitchWindow : | 110 | class SwitchWindow : |
280 | @@ -160,8 +169,8 @@ | |||
281 | 160 | 169 | ||
282 | 161 | extern const unsigned short BOX_WIDTH; | 170 | extern const unsigned short BOX_WIDTH; |
283 | 162 | 171 | ||
286 | 163 | #define WINDOW_WIDTH(count) (WIDTH * (count) + (SPACE << 1)) | 172 | #define WINDOW_WIDTH(count) (static_cast<int>(WIDTH * sizeMultiplier) * (count) + (SPACE << 1)) |
287 | 164 | #define WINDOW_HEIGHT (HEIGHT + (SPACE << 1)) | 173 | #define WINDOW_HEIGHT (static_cast<int>(HEIGHT * sizeMultiplier) + (SPACE << 1)) |
288 | 165 | 174 | ||
289 | 166 | #define SWITCH_SCREEN(s) \ | 175 | #define SWITCH_SCREEN(s) \ |
290 | 167 | SwitchScreen *ss = SwitchScreen::get (s) | 176 | SwitchScreen *ss = SwitchScreen::get (s) |
291 | 168 | 177 | ||
292 | === modified file 'plugins/switcher/switcher.xml.in' | |||
293 | --- plugins/switcher/switcher.xml.in 2015-08-22 21:46:01 +0000 | |||
294 | +++ plugins/switcher/switcher.xml.in 2016-07-20 09:53:18 +0000 | |||
295 | @@ -98,6 +98,14 @@ | |||
296 | 98 | <max>50</max> | 98 | <max>50</max> |
297 | 99 | <precision>0.1</precision> | 99 | <precision>0.1</precision> |
298 | 100 | </option> | 100 | </option> |
299 | 101 | <option name="size_multiplier" type="float"> | ||
300 | 102 | <_short>Size multiplier</_short> | ||
301 | 103 | <_long>adjusts the size of the switch windows</_long> | ||
302 | 104 | <default>1</default> | ||
303 | 105 | <min>0.1</min> | ||
304 | 106 | <max>10</max> | ||
305 | 107 | <precision>0.1</precision> | ||
306 | 108 | </option> | ||
307 | 101 | <option name="window_match" type="match"> | 109 | <option name="window_match" type="match"> |
308 | 102 | <_short>Switcher windows</_short> | 110 | <_short>Switcher windows</_short> |
309 | 103 | <_long>Windows that should be shown in switcher</_long> | 111 | <_long>Windows that should be shown in switcher</_long> |
I see some indentation issues, but a part from that it looks ok