Merge lp:~mc-return/compiz/compiz.merge-replace-defines into lp:compiz/0.9.8

Proposed by MC Return
Status: Merged
Approved by: Sam Spilsbury
Approved revision: 3353
Merged at revision: 3358
Proposed branch: lp:~mc-return/compiz/compiz.merge-replace-defines
Merge into: lp:compiz/0.9.8
Diff against target: 1482 lines (+298/-160)
84 files modified
gtk/window-decorator/gtk-window-decorator.c (+17/-0)
gtk/window-decorator/gtk-window-decorator.h (+13/-13)
include/core/screen.h (+9/-9)
kde/window-decorator-kde4/decorator.cpp (+11/-4)
kde/window-decorator-kde4/decorator.h (+5/-5)
libdecoration/decoration.c (+1/-1)
plugins/animation/include/animation/animation.h (+2/-1)
plugins/animation/src/animation.cpp (+5/-1)
plugins/animation/src/private.h (+1/-1)
plugins/animationaddon/src/animationaddon.cpp (+3/-0)
plugins/animationaddon/src/polygon.cpp (+2/-2)
plugins/animationaddon/src/private.h (+1/-1)
plugins/bench/src/bench.cpp (+2/-2)
plugins/blur/src/blur.cpp (+7/-1)
plugins/blur/src/blur.h (+4/-4)
plugins/ccp/src/ccp.cpp (+2/-2)
plugins/compiztoolbox/include/compiztoolbox/compiztoolbox.h (+2/-2)
plugins/compiztoolbox/src/compiztoolbox.cpp (+3/-0)
plugins/copytex/src/copytex.cpp (+3/-0)
plugins/copytex/src/copytex.h (+2/-2)
plugins/cubeaddon/src/cubeaddon.cpp (+10/-0)
plugins/cubeaddon/src/cubeaddon.h (+9/-9)
plugins/dbus/src/dbus.h (+4/-4)
plugins/decor/src/decor.h (+3/-3)
plugins/expo/src/expo.cpp (+1/-1)
plugins/firepaint/src/firepaint.cpp (+2/-0)
plugins/firepaint/src/firepaint.h (+1/-1)
plugins/grid/src/grid.h (+1/-1)
plugins/group/src/glow.cpp (+10/-0)
plugins/group/src/glow.h (+9/-9)
plugins/group/src/group.cpp (+3/-1)
plugins/group/src/group.h (+1/-1)
plugins/group/src/tab.cpp (+1/-1)
plugins/imgpng/src/imgpng.cpp (+2/-0)
plugins/imgpng/src/imgpng.h (+1/-1)
plugins/maximumize/src/maximumize.cpp (+4/-0)
plugins/maximumize/src/maximumize.h (+3/-3)
plugins/mousepoll/src/mousepoll.cpp (+3/-0)
plugins/mousepoll/src/private.h (+2/-2)
plugins/move/src/move.cpp (+5/-0)
plugins/move/src/move.h (+3/-3)
plugins/notification/src/notification.cpp (+3/-1)
plugins/notification/src/notification.h (+1/-1)
plugins/obs/src/obs.cpp (+4/-0)
plugins/obs/src/obs.h (+4/-4)
plugins/opacify/src/opacify.cpp (+2/-0)
plugins/opacify/src/opacify.h (+1/-1)
plugins/opengl/include/opengl/opengl.h (+7/-7)
plugins/opengl/src/opengl.cpp (+10/-0)
plugins/place/src/place.cpp (+2/-2)
plugins/place/src/smart/src/smart.cpp (+3/-3)
plugins/put/src/put.cpp (+4/-4)
plugins/resize/src/logic/include/resize-defs.h (+2/-2)
plugins/resize/src/logic/src/resize-logic.cpp (+4/-4)
plugins/resizeinfo/src/resizeinfo.cpp (+5/-0)
plugins/resizeinfo/src/resizeinfo.h (+3/-3)
plugins/ring/src/ring.cpp (+4/-0)
plugins/ring/src/ring.h (+2/-2)
plugins/rotate/src/rotate.cpp (+1/-1)
plugins/scaleaddon/src/scaleaddon.cpp (+1/-1)
plugins/shelf/src/shelf.cpp (+2/-0)
plugins/shelf/src/shelf.h (+1/-1)
plugins/shift/src/shift.cpp (+2/-0)
plugins/shift/src/shift.h (+1/-1)
plugins/showdesktop/src/showdesktop.cpp (+5/-0)
plugins/showdesktop/src/showdesktop.h (+4/-4)
plugins/splash/src/splash.cpp (+3/-0)
plugins/splash/src/splash.h (+2/-2)
plugins/staticswitcher/src/staticswitcher.cpp (+3/-0)
plugins/staticswitcher/src/staticswitcher.h (+2/-2)
plugins/switcher/src/switcher.cpp (+6/-0)
plugins/switcher/src/switcher.h (+4/-4)
plugins/td/src/3d.cpp (+2/-0)
plugins/td/src/3d.h (+1/-1)
plugins/text/src/text.cpp (+1/-1)
plugins/thumbnail/src/thumbnail.cpp (+2/-0)
plugins/thumbnail/src/thumbnail.h (+1/-1)
plugins/wall/src/wall.cpp (+4/-4)
plugins/water/src/water.cpp (+4/-0)
plugins/water/src/water.h (+2/-2)
plugins/wobbly/src/wobbly.h (+1/-1)
src/event.cpp (+3/-3)
src/screen.cpp (+5/-5)
src/timer/src/timer.cpp (+1/-1)
To merge this branch: bzr merge lp:~mc-return/compiz/compiz.merge-replace-defines
Reviewer Review Type Date Requested Status
Sam Spilsbury Approve
MC Return Needs Resubmitting
Review via email: mp+122865@code.launchpad.net

Commit message

Replaced #defines of standard variable types

Description of the change

Replaces #defines of standard variable types

To post a comment you must log in.
Revision history for this message
MC Return (mc-return) wrote :

If this is a good idea I could continue this...
I also noticed that PI for example is defined by several plug-ins. It could be made global, no ?

Revision history for this message
Sam Spilsbury (smspillaz) wrote :

I vote continue. Daniel?

review: Approve
Revision history for this message
MC Return (mc-return) wrote :

Ready for review so far.
I've left out converting stuff like ABI_VERSION and may have missed some others - also for now I did replace just the #defines of short, int and string types, but this compiles and *should* work.

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

I think PI should be defined as value M_PI (from #include <math.h>). And *ABI* macros have to stay as macros so they can be used in preprocessing:
    #if SOMETHING_ABI >= N

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

Scratch that. M_PI is not technically a C/C++ standard, so don't use it.

Revision history for this message
MC Return (mc-return) wrote :

> And *ABI*
> macros have to stay as macros so they can be used in preprocessing:
> #if SOMETHING_ABI >= N

Okay, did not touch any of the ABI #defines.

Revision history for this message
MC Return (mc-return) wrote :

> Scratch that. M_PI is not technically a C/C++ standard, so don't use it.

For now I did just change #defines of PI to "static const double PI = 3.14159265359f;".

Revision history for this message
MC Return (mc-return) wrote :

CI test start, please :)

review: Needs Resubmitting
Revision history for this message
Sam Spilsbury (smspillaz) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'gtk/window-decorator/gtk-window-decorator.c'
--- gtk/window-decorator/gtk-window-decorator.c 2012-08-27 15:40:30 +0000
+++ gtk/window-decorator/gtk-window-decorator.c 2012-09-08 00:13:22 +0000
@@ -43,6 +43,23 @@
4343
44#define SWITCHER_SPACE 4044#define SWITCHER_SPACE 40
4545
46const float STROKE_ALPHA = 0.6f;
47
48const unsigned short ICON_SPACE = 20;
49
50const float DOUBLE_CLICK_DISTANCE = 8.0f;
51
52const float SHADOW_RADIUS = 8.0f;
53const float SHADOW_OPACITY = 0.5f;
54const unsigned short SHADOW_OFFSET_X = 1;
55const unsigned short SHADOW_OFFSET_Y = 1;
56
57const float META_OPACITY = 0.75f;
58
59const float META_ACTIVE_OPACITY = 1.0f;
60
61guint cmdline_options = 0;
62
46GdkPixmap *decor_normal_pixmap = NULL;63GdkPixmap *decor_normal_pixmap = NULL;
47GdkPixmap *decor_active_pixmap = NULL;64GdkPixmap *decor_active_pixmap = NULL;
4865
4966
=== modified file 'gtk/window-decorator/gtk-window-decorator.h'
--- gtk/window-decorator/gtk-window-decorator.h 2012-08-28 04:45:17 +0000
+++ gtk/window-decorator/gtk-window-decorator.h 2012-09-08 00:13:22 +0000
@@ -172,11 +172,11 @@
172#define DBUS_INTERFACE "org.freedesktop.compiz"172#define DBUS_INTERFACE "org.freedesktop.compiz"
173#define DBUS_METHOD_GET "get"173#define DBUS_METHOD_GET "get"
174174
175#define STROKE_ALPHA 0.6175extern const float STROKE_ALPHA;
176176
177#define ICON_SPACE 20177extern const unsigned short ICON_SPACE;
178178
179#define DOUBLE_CLICK_DISTANCE 8.0179extern const float DOUBLE_CLICK_DISTANCE;
180180
181#define WM_MOVERESIZE_SIZE_TOPLEFT 0181#define WM_MOVERESIZE_SIZE_TOPLEFT 0
182#define WM_MOVERESIZE_SIZE_TOP 1182#define WM_MOVERESIZE_SIZE_TOP 1
@@ -190,18 +190,18 @@
190#define WM_MOVERESIZE_SIZE_KEYBOARD 9190#define WM_MOVERESIZE_SIZE_KEYBOARD 9
191#define WM_MOVERESIZE_MOVE_KEYBOARD 10191#define WM_MOVERESIZE_MOVE_KEYBOARD 10
192192
193#define SHADOW_RADIUS 8.0193extern const float SHADOW_RADIUS;
194#define SHADOW_OPACITY 0.5194extern const float SHADOW_OPACITY;
195#define SHADOW_OFFSET_X 1195extern const unsigned short SHADOW_OFFSET_X;
196#define SHADOW_OFFSET_Y 1196extern const unsigned short SHADOW_OFFSET_Y;
197#define SHADOW_COLOR_RED 0x0000197#define SHADOW_COLOR_RED 0x0000
198#define SHADOW_COLOR_GREEN 0x0000198#define SHADOW_COLOR_GREEN 0x0000
199#define SHADOW_COLOR_BLUE 0x0000199#define SHADOW_COLOR_BLUE 0x0000
200200
201#define META_OPACITY 0.75201extern const float META_OPACITY;
202#define META_SHADE_OPACITY TRUE202#define META_SHADE_OPACITY TRUE;
203#define META_ACTIVE_OPACITY 1.0203extern const float META_ACTIVE_OPACITY;
204#define META_ACTIVE_SHADE_OPACITY TRUE204#define META_ACTIVE_SHADE_OPACITY TRUE;
205205
206#define META_MAXIMIZED (WNCK_WINDOW_STATE_MAXIMIZED_HORIZONTALLY | \206#define META_MAXIMIZED (WNCK_WINDOW_STATE_MAXIMIZED_HORIZONTALLY | \
207WNCK_WINDOW_STATE_MAXIMIZED_VERTICALLY)207WNCK_WINDOW_STATE_MAXIMIZED_VERTICALLY)
208208
=== modified file 'include/core/screen.h'
--- include/core/screen.h 2012-06-24 09:00:27 +0000
+++ include/core/screen.h 2012-09-08 00:13:22 +0000
@@ -69,15 +69,15 @@
69#define NOTIFY_MOVE_MASK (1 << 2)69#define NOTIFY_MOVE_MASK (1 << 2)
70#define NOTIFY_MODIFY_MASK (1 << 3)70#define NOTIFY_MODIFY_MASK (1 << 3)
7171
72#define SCREEN_EDGE_LEFT 072#define SCREEN_EDGE_LEFT 0
73#define SCREEN_EDGE_RIGHT 173#define SCREEN_EDGE_RIGHT 1
74#define SCREEN_EDGE_TOP 274#define SCREEN_EDGE_TOP 2
75#define SCREEN_EDGE_BOTTOM 375#define SCREEN_EDGE_BOTTOM 3
76#define SCREEN_EDGE_TOPLEFT 476#define SCREEN_EDGE_TOPLEFT 4
77#define SCREEN_EDGE_TOPRIGHT 577#define SCREEN_EDGE_TOPRIGHT 5
78#define SCREEN_EDGE_BOTTOMLEFT 678#define SCREEN_EDGE_BOTTOMLEFT 6
79#define SCREEN_EDGE_BOTTOMRIGHT 779#define SCREEN_EDGE_BOTTOMRIGHT 7
80#define SCREEN_EDGE_NUM 880#define SCREEN_EDGE_NUM 8
8181
82typedef boost::function<void (short int)> FdWatchCallBack;82typedef boost::function<void (short int)> FdWatchCallBack;
83typedef boost::function<void (const char *)> FileWatchCallBack;83typedef boost::function<void (const char *)> FileWatchCallBack;
8484
=== modified file 'kde/window-decorator-kde4/decorator.cpp'
--- kde/window-decorator-kde4/decorator.cpp 2012-05-27 04:32:55 +0000
+++ kde/window-decorator-kde4/decorator.cpp 2012-09-08 00:13:22 +0000
@@ -46,10 +46,17 @@
4646
47#include <stdio.h>47#include <stdio.h>
4848
49#define SHADOW_RADIUS 8.049const unsigned int ROOT_OFF_X = 8192;
50#define SHADOW_OPACITY 0.550const unsigned int ROOT_OFF_Y = 8192;
51#define SHADOW_OFFSET_X 151
52#define SHADOW_OFFSET_Y 152const unsigned short BLUR_TYPE_NONE = 0;
53const unsigned short BLUR_TYPE_TITLEBAR = 1;
54const unsigned short BLUR_TYPE_ALL = 2;
55
56static const float SHADOW_RADIUS = 8.0f;
57static const float SHADOW_OPACITY = 0.5f;
58static const unsigned short SHADOW_OFFSET_X = 1;
59static const unsigned short SHADOW_OFFSET_Y = 1;
53#define SHADOW_COLOR_RED 0x000060#define SHADOW_COLOR_RED 0x0000
54#define SHADOW_COLOR_GREEN 0x000061#define SHADOW_COLOR_GREEN 0x0000
55#define SHADOW_COLOR_BLUE 0x000062#define SHADOW_COLOR_BLUE 0x0000
5663
=== modified file 'kde/window-decorator-kde4/decorator.h'
--- kde/window-decorator-kde4/decorator.h 2011-10-13 11:31:37 +0000
+++ kde/window-decorator-kde4/decorator.h 2012-09-08 00:13:22 +0000
@@ -43,8 +43,8 @@
43#include "kdecoration_plugins.h"43#include "kdecoration_plugins.h"
44#include "utils.h"44#include "utils.h"
4545
46#define ROOT_OFF_X 819246extern const unsigned int ROOT_OFF_X;
47#define ROOT_OFF_Y 819247extern const unsigned int ROOT_OFF_Y;
4848
49#define C(name) { 0, XC_ ## name }49#define C(name) { 0, XC_ ## name }
5050
@@ -55,9 +55,9 @@
5555
56extern struct _cursor cursors[3][3];56extern struct _cursor cursors[3][3];
5757
58#define BLUR_TYPE_NONE 058extern const unsigned short BLUR_TYPE_NONE;
59#define BLUR_TYPE_TITLEBAR 159extern const unsigned short BLUR_TYPE_TITLEBAR;
60#define BLUR_TYPE_ALL 260extern const unsigned short BLUR_TYPE_ALL;
6161
62extern int blurType;62extern int blurType;
6363
6464
=== modified file 'libdecoration/decoration.c'
--- libdecoration/decoration.c 2012-08-20 05:40:55 +0000
+++ libdecoration/decoration.c 2012-09-08 00:13:22 +0000
@@ -3145,7 +3145,7 @@
3145 Time dm_sn_timestamp)3145 Time dm_sn_timestamp)
3146{3146{
31473147
3148#define N_TARGETS 43148static const unsigned short N_TARGETS = 4;
31493149
3150 Atom conversion_targets[N_TARGETS];3150 Atom conversion_targets[N_TARGETS];
31513151
31523152
=== modified file 'plugins/animation/include/animation/animation.h'
--- plugins/animation/include/animation/animation.h 2012-09-04 10:00:14 +0000
+++ plugins/animation/include/animation/animation.h 2012-09-08 00:13:22 +0000
@@ -39,7 +39,8 @@
39 AnimDirectionRandom,39 AnimDirectionRandom,
40 AnimDirectionAuto40 AnimDirectionAuto
41} AnimDirection;41} AnimDirection;
42#define LAST_ANIM_DIRECTION 542
43extern const unsigned short LAST_ANIM_DIRECTION;
4344
44class PrivateAnimScreen;45class PrivateAnimScreen;
45class PrivateAnimWindow;46class PrivateAnimWindow;
4647
=== modified file 'plugins/animation/src/animation.cpp'
--- plugins/animation/src/animation.cpp 2012-09-05 08:17:59 +0000
+++ plugins/animation/src/animation.cpp 2012-09-08 00:13:22 +0000
@@ -103,7 +103,11 @@
103103
104COMPIZ_PLUGIN_20090315 (animation, AnimPluginVTable);104COMPIZ_PLUGIN_20090315 (animation, AnimPluginVTable);
105105
106#define FAKE_ICON_SIZE 4106static const unsigned short FAKE_ICON_SIZE = 4;
107
108const unsigned short LAST_ANIM_DIRECTION = 5;
109
110const unsigned short NUM_EFFECTS = 16;
107111
108const char *eventNames[AnimEventNum] =112const char *eventNames[AnimEventNum] =
109{"Open", "Close", "Minimize", "Unminimize", "Shade", "Focus"};113{"Open", "Close", "Minimize", "Unminimize", "Shade", "Focus"};
110114
=== modified file 'plugins/animation/src/private.h'
--- plugins/animation/src/private.h 2012-08-14 06:33:22 +0000
+++ plugins/animation/src/private.h 2012-09-08 00:13:22 +0000
@@ -89,7 +89,7 @@
89extern AnimEffect AnimEffectWave;89extern AnimEffect AnimEffectWave;
90extern AnimEffect AnimEffectZoom;90extern AnimEffect AnimEffectZoom;
9191
92#define NUM_EFFECTS 1692extern const unsigned short NUM_EFFECTS;
9393
94extern int customOptionOptionIds[AnimEventNum];94extern int customOptionOptionIds[AnimEventNum];
9595
9696
=== modified file 'plugins/animationaddon/src/animationaddon.cpp'
--- plugins/animationaddon/src/animationaddon.cpp 2012-08-20 14:24:34 +0000
+++ plugins/animationaddon/src/animationaddon.cpp 2012-09-08 00:13:22 +0000
@@ -90,6 +90,9 @@
9090
91COMPIZ_PLUGIN_20090315 (animationaddon, AnimAddonPluginVTable);91COMPIZ_PLUGIN_20090315 (animationaddon, AnimAddonPluginVTable);
9292
93// TODO Update this for each added animation effect! (total: 11)
94const unsigned short NUM_EFFECTS = 11;
95
93AnimEffect animEffects[NUM_EFFECTS];96AnimEffect animEffects[NUM_EFFECTS];
9497
95ExtensionPluginAnimAddon animAddonExtPluginInfo (CompString ("animationaddon"),98ExtensionPluginAnimAddon animAddonExtPluginInfo (CompString ("animationaddon"),
9699
=== modified file 'plugins/animationaddon/src/polygon.cpp'
--- plugins/animationaddon/src/polygon.cpp 2012-05-21 08:50:26 +0000
+++ plugins/animationaddon/src/polygon.cpp 2012-09-08 00:13:22 +0000
@@ -37,7 +37,7 @@
37#include <GL/glu.h>37#include <GL/glu.h>
38#include "private.h"38#include "private.h"
3939
40#define MIN_WINDOW_GRID_SIZE 1040static const unsigned short MIN_WINDOW_GRID_SIZE = 10;
4141
42PolygonAnim::PolygonAnim (CompWindow *w,42PolygonAnim::PolygonAnim (CompWindow *w,
43 WindowEvent curWindowEvent,43 WindowEvent curWindowEvent,
@@ -1902,7 +1902,7 @@
19021902
1903 float zradius = radius / ::screen->width ();1903 float zradius = radius / ::screen->width ();
19041904
1905#define N_POINTS 81905static const unsigned short N_POINTS = 8;
1906 // Corners of bounding cube1906 // Corners of bounding cube
1907 Point3d cubeCorners[N_POINTS];1907 Point3d cubeCorners[N_POINTS];
1908 cubeCorners[0].set (center.x () - radius, center.y () - radius,1908 cubeCorners[0].set (center.x () - radius, center.y () - radius,
19091909
=== modified file 'plugins/animationaddon/src/private.h'
--- plugins/animationaddon/src/private.h 2010-10-23 15:41:30 +0000
+++ plugins/animationaddon/src/private.h 2012-09-08 00:13:22 +0000
@@ -29,7 +29,7 @@
29extern AnimEffect AnimEffectSkewer;29extern AnimEffect AnimEffectSkewer;
3030
31// TODO Update this for each added animation effect! (total: 11)31// TODO Update this for each added animation effect! (total: 11)
32#define NUM_EFFECTS 1132extern const unsigned short NUM_EFFECTS;
3333
34// This must have the value of the first "effect setting" above34// This must have the value of the first "effect setting" above
35// in AnimAddonScreenOptions35// in AnimAddonScreenOptions
3636
=== modified file 'plugins/bench/src/bench.cpp'
--- plugins/bench/src/bench.cpp 2012-09-04 15:33:44 +0000
+++ plugins/bench/src/bench.cpp 2012-09-08 00:13:22 +0000
@@ -29,8 +29,8 @@
2929
30COMPIZ_PLUGIN_20090315 (bench, BenchPluginVTable)30COMPIZ_PLUGIN_20090315 (bench, BenchPluginVTable)
3131
32#define TEX_WIDTH 51232static const unsigned int TEX_WIDTH = 512;
33#define TEX_HEIGHT 25633static const unsigned short TEX_HEIGHT = 256;
3434
35void35void
36BenchScreen::preparePaint (int msSinceLastPaint)36BenchScreen::preparePaint (int msSinceLastPaint)
3737
=== modified file 'plugins/blur/src/blur.cpp'
--- plugins/blur/src/blur.cpp 2010-10-24 14:42:07 +0000
+++ plugins/blur/src/blur.cpp 2012-09-08 00:13:22 +0000
@@ -27,6 +27,12 @@
2727
28COMPIZ_PLUGIN_20090315 (blur, BlurPluginVTable)28COMPIZ_PLUGIN_20090315 (blur, BlurPluginVTable)
2929
30const unsigned short BLUR_GAUSSIAN_RADIUS_MAX = 15;
31
32const unsigned short BLUR_STATE_CLIENT = 0;
33const unsigned short BLUR_STATE_DECOR = 1;
34const unsigned short BLUR_STATE_NUM = 2;
35
30/* pascal triangle based kernel generator */36/* pascal triangle based kernel generator */
31static int37static int
32blurCreateGaussianLinearKernel (int radius,38blurCreateGaussianLinearKernel (int radius,
@@ -1210,7 +1216,7 @@
1210 return true;1216 return true;
1211}1217}
12121218
1213#define MAX_VERTEX_PROJECT_COUNT 201219static const unsigned short MAX_VERTEX_PROJECT_COUNT = 20;
12141220
1215void1221void
1216BlurWindow::projectRegion (CompOutput *output,1222BlurWindow::projectRegion (CompOutput *output,
12171223
=== modified file 'plugins/blur/src/blur.h'
--- plugins/blur/src/blur.h 2012-01-18 16:26:45 +0000
+++ plugins/blur/src/blur.h 2012-09-08 00:13:22 +0000
@@ -38,7 +38,7 @@
38#include <GL/glu.h>38#include <GL/glu.h>
3939
4040
41#define BLUR_GAUSSIAN_RADIUS_MAX 1541extern const unsigned short BLUR_GAUSSIAN_RADIUS_MAX;
4242
43struct BlurFunction {43struct BlurFunction {
4444
@@ -56,9 +56,9 @@
56 decor_point_t p2;56 decor_point_t p2;
57};57};
5858
59#define BLUR_STATE_CLIENT 059extern const unsigned short BLUR_STATE_CLIENT;
60#define BLUR_STATE_DECOR 160extern const unsigned short BLUR_STATE_DECOR;
61#define BLUR_STATE_NUM 261extern const unsigned short BLUR_STATE_NUM;
6262
63struct BlurState {63struct BlurState {
64 int threshold;64 int threshold;
6565
=== modified file 'plugins/ccp/src/ccp.cpp'
--- plugins/ccp/src/ccp.cpp 2012-08-15 02:17:36 +0000
+++ plugins/ccp/src/ccp.cpp 2012-09-08 00:13:22 +0000
@@ -22,8 +22,8 @@
2222
23COMPIZ_PLUGIN_20090315 (ccp, CcpPluginVTable)23COMPIZ_PLUGIN_20090315 (ccp, CcpPluginVTable)
2424
25#define CCP_UPDATE_MIN_TIMEOUT 25025static const unsigned short CCP_UPDATE_MIN_TIMEOUT = 250;
26#define CCP_UPDATE_MAX_TIMEOUT 400026static const unsigned short CCP_UPDATE_MAX_TIMEOUT = 4000;
27#define CORE_VTABLE_NAME "core"27#define CORE_VTABLE_NAME "core"
2828
2929
3030
=== modified file 'plugins/compiztoolbox/include/compiztoolbox/compiztoolbox.h'
--- plugins/compiztoolbox/include/compiztoolbox/compiztoolbox.h 2012-01-31 17:01:32 +0000
+++ plugins/compiztoolbox/include/compiztoolbox/compiztoolbox.h 2012-09-08 00:13:22 +0000
@@ -161,7 +161,7 @@
161 CompWindow *window;161 CompWindow *window;
162};162};
163163
164#define ICON_SIZE 48164extern const unsigned short ICON_SIZE;
165#define MAX_ICON_SIZE 256165extern const unsigned int MAX_ICON_SIZE;
166166
167#endif167#endif
168168
=== modified file 'plugins/compiztoolbox/src/compiztoolbox.cpp'
--- plugins/compiztoolbox/src/compiztoolbox.cpp 2012-08-14 06:33:22 +0000
+++ plugins/compiztoolbox/src/compiztoolbox.cpp 2012-09-08 00:13:22 +0000
@@ -29,6 +29,9 @@
29#include <core/abiversion.h>29#include <core/abiversion.h>
30#include <core/propertywriter.h>30#include <core/propertywriter.h>
3131
32const unsigned short ICON_SIZE = 48;
33const unsigned int MAX_ICON_SIZE = 256;
34
32bool openGLAvailable;35bool openGLAvailable;
3336
34class CompizToolboxScreen :37class CompizToolboxScreen :
3538
=== modified file 'plugins/copytex/src/copytex.cpp'
--- plugins/copytex/src/copytex.cpp 2012-07-03 18:16:28 +0000
+++ plugins/copytex/src/copytex.cpp 2012-09-08 00:13:22 +0000
@@ -27,6 +27,9 @@
2727
28COMPIZ_PLUGIN_20090315 (copytex, CopytexPluginVTable)28COMPIZ_PLUGIN_20090315 (copytex, CopytexPluginVTable)
2929
30const int MAX_SUB_TEX = 2048;
31const unsigned int SHM_SIZE = MAX_SUB_TEX * MAX_SUB_TEX * 4;
32
30static GLTexture::Matrix _identity_matrix = {33static GLTexture::Matrix _identity_matrix = {
31 1.0f, 0.0f,34 1.0f, 0.0f,
32 0.0f, 1.0f,35 0.0f, 1.0f,
3336
=== modified file 'plugins/copytex/src/copytex.h'
--- plugins/copytex/src/copytex.h 2012-01-18 16:26:45 +0000
+++ plugins/copytex/src/copytex.h 2012-09-08 00:13:22 +0000
@@ -34,8 +34,8 @@
34#include <sys/shm.h>34#include <sys/shm.h>
35#include <sys/ipc.h>35#include <sys/ipc.h>
3636
37#define MAX_SUB_TEX 204837extern const int MAX_SUB_TEX;
38#define SHM_SIZE MAX_SUB_TEX * MAX_SUB_TEX * 438extern const unsigned int SHM_SIZE;
3939
40class CopyTexture;40class CopyTexture;
4141
4242
=== modified file 'plugins/cubeaddon/src/cubeaddon.cpp'
--- plugins/cubeaddon/src/cubeaddon.cpp 2012-07-30 14:27:55 +0000
+++ plugins/cubeaddon/src/cubeaddon.cpp 2012-09-08 00:13:22 +0000
@@ -27,6 +27,16 @@
2727
28COMPIZ_PLUGIN_20090315 (cubeaddon, CubeaddonPluginVTable);28COMPIZ_PLUGIN_20090315 (cubeaddon, CubeaddonPluginVTable);
2929
30const unsigned short CUBEADDON_GRID_SIZE = 100;
31const unsigned short CAP_ELEMENTS = 15;
32const unsigned int CAP_NVERTEX = (((CAP_ELEMENTS * (CAP_ELEMENTS + 1)) + 2) * 3);
33const unsigned int CAP_NIDX = (CAP_ELEMENTS * (CAP_ELEMENTS - 1) * 4);
34
35const unsigned int CAP_NIMGVERTEX = (((CAP_ELEMENTS + 1) * (CAP_ELEMENTS + 1)) * 5);
36const unsigned int CAP_NIMGIDX = (CAP_ELEMENTS * CAP_ELEMENTS * 4);
37
38const float RAD2I1024 = 162.9746617f;
39
30/*40/*
31 * Initiate a CubeCap41 * Initiate a CubeCap
32 */42 */
3343
=== modified file 'plugins/cubeaddon/src/cubeaddon.h'
--- plugins/cubeaddon/src/cubeaddon.h 2010-09-30 11:47:10 +0000
+++ plugins/cubeaddon/src/cubeaddon.h 2012-09-08 00:13:22 +0000
@@ -39,15 +39,15 @@
3939
40#include "cubeaddon_options.h"40#include "cubeaddon_options.h"
4141
42#define CUBEADDON_GRID_SIZE 10042extern const unsigned short CUBEADDON_GRID_SIZE;
43#define CAP_ELEMENTS 1543extern const unsigned short CAP_ELEMENTS;
44#define CAP_NVERTEX (((CAP_ELEMENTS * (CAP_ELEMENTS + 1)) + 2) * 3)44extern const unsigned int CAP_NVERTEX;
45#define CAP_NIDX (CAP_ELEMENTS * (CAP_ELEMENTS - 1) * 4)45extern const unsigned int CAP_NIDX;
4646
47#define CAP_NIMGVERTEX (((CAP_ELEMENTS + 1) * (CAP_ELEMENTS + 1)) * 5)47extern const unsigned int CAP_NIMGVERTEX;
48#define CAP_NIMGIDX (CAP_ELEMENTS * CAP_ELEMENTS * 4)48extern const unsigned int CAP_NIMGIDX;
4949
50#define RAD2I1024 162.974661750extern const float RAD2I1024 = 162.9746617f;
5151
52class CubeaddonScreen :52class CubeaddonScreen :
53 public CompositeScreenInterface,53 public CompositeScreenInterface,
5454
=== modified file 'plugins/dbus/src/dbus.h'
--- plugins/dbus/src/dbus.h 2012-06-24 09:00:27 +0000
+++ plugins/dbus/src/dbus.h 2012-09-08 00:13:22 +0000
@@ -53,10 +53,10 @@
53#define COMPIZ_DBUS_CHANGED_SIGNAL_NAME "changed"53#define COMPIZ_DBUS_CHANGED_SIGNAL_NAME "changed"
54#define COMPIZ_DBUS_PLUGINS_CHANGED_SIGNAL_NAME "pluginsChanged"54#define COMPIZ_DBUS_PLUGINS_CHANGED_SIGNAL_NAME "pluginsChanged"
5555
56#define DBUS_FILE_WATCH_CURRENT 056#define DBUS_FILE_WATCH_CURRENT 0
57#define DBUS_FILE_WATCH_PLUGIN 157#define DBUS_FILE_WATCH_PLUGIN 1
58#define DBUS_FILE_WATCH_HOME 258#define DBUS_FILE_WATCH_HOME 2
59#define DBUS_FILE_WATCH_NUM 359#define DBUS_FILE_WATCH_NUM 3
6060
61class DbusScreen :61class DbusScreen :
62 public PluginClassHandler <DbusScreen, CompScreen>,62 public PluginClassHandler <DbusScreen, CompScreen>,
6363
=== modified file 'plugins/decor/src/decor.h'
--- plugins/decor/src/decor.h 2012-07-30 07:10:52 +0000
+++ plugins/decor/src/decor.h 2012-09-08 00:13:22 +0000
@@ -50,9 +50,9 @@
50};50};
5151
52/* FIXME: Remove */52/* FIXME: Remove */
53#define DECOR_BARE 053#define DECOR_BARE 0
54#define DECOR_ACTIVE 154#define DECOR_ACTIVE 1
55#define DECOR_NUM 255#define DECOR_NUM 2
5656
57using namespace compiz::decor;57using namespace compiz::decor;
5858
5959
=== modified file 'plugins/expo/src/expo.cpp'
--- plugins/expo/src/expo.cpp 2012-08-22 01:21:08 +0000
+++ plugins/expo/src/expo.cpp 2012-09-08 00:13:22 +0000
@@ -1290,7 +1290,7 @@
1290 return gWindow->glDraw (transform, eAttrib, region, mask);1290 return gWindow->glDraw (transform, eAttrib, region, mask);
1291}1291}
12921292
1293#define EXPO_GRID_SIZE 1001293static const unsigned short EXPO_GRID_SIZE = 100;
12941294
1295void1295void
1296ExpoWindow::glAddGeometry (const GLTexture::MatrixList& matrices,1296ExpoWindow::glAddGeometry (const GLTexture::MatrixList& matrices,
12971297
=== modified file 'plugins/firepaint/src/firepaint.cpp'
--- plugins/firepaint/src/firepaint.cpp 2012-09-04 15:33:44 +0000
+++ plugins/firepaint/src/firepaint.cpp 2012-09-08 00:13:22 +0000
@@ -23,6 +23,8 @@
2323
24COMPIZ_PLUGIN_20090315 (firepaint, FirePluginVTable);24COMPIZ_PLUGIN_20090315 (firepaint, FirePluginVTable);
2525
26const unsigned int NUM_ADD_POINTS = 1000;
27
26Particle::Particle () :28Particle::Particle () :
27 life (0),29 life (0),
28 fade (0),30 fade (0),
2931
=== modified file 'plugins/firepaint/src/firepaint.h'
--- plugins/firepaint/src/firepaint.h 2012-09-04 15:33:44 +0000
+++ plugins/firepaint/src/firepaint.h 2012-09-08 00:13:22 +0000
@@ -107,7 +107,7 @@
107 finiParticles ();107 finiParticles ();
108};108};
109109
110#define NUM_ADD_POINTS 1000110extern const unsigned int NUM_ADD_POINTS;
111111
112class FireScreen:112class FireScreen:
113 public PluginClassHandler <FireScreen, CompScreen>,113 public PluginClassHandler <FireScreen, CompScreen>,
114114
=== modified file 'plugins/grid/src/grid.h'
--- plugins/grid/src/grid.h 2012-05-27 04:32:55 +0000
+++ plugins/grid/src/grid.h 2012-09-08 00:13:22 +0000
@@ -30,7 +30,7 @@
3030
31#include "grid_options.h"31#include "grid_options.h"
3232
33#define SNAPOFF_THRESHOLD 5033static const unsigned short SNAPOFF_THRESHOLD = 50;
3434
35namespace GridWindowType35namespace GridWindowType
36{36{
3737
=== modified file 'plugins/group/src/glow.cpp'
--- plugins/group/src/glow.cpp 2011-03-14 15:58:39 +0000
+++ plugins/group/src/glow.cpp 2012-09-08 00:13:22 +0000
@@ -27,6 +27,16 @@
27#include "group.h"27#include "group.h"
28#include "group_glow.h"28#include "group_glow.h"
2929
30const unsigned short GLOWQUAD_TOPLEFT = 0;
31const unsigned short GLOWQUAD_TOPRIGHT = 1;
32const unsigned short GLOWQUAD_BOTTOMLEFT = 2;
33const unsigned short GLOWQUAD_BOTTOMRIGHT = 3;
34const unsigned short GLOWQUAD_TOP = 4;
35const unsigned short GLOWQUAD_BOTTOM = 5;
36const unsigned short GLOWQUAD_LEFT = 6;
37const unsigned short GLOWQUAD_RIGHT = 7;
38const unsigned short NUM_GLOWQUADS = 8;
39
30const GlowTextureProperties glowTextureProperties[2] = {40const GlowTextureProperties glowTextureProperties[2] = {
31 /* GlowTextureRectangular */41 /* GlowTextureRectangular */
32 {glowTexRect, 32, 21},42 {glowTexRect, 32, 21},
3343
=== modified file 'plugins/group/src/glow.h'
--- plugins/group/src/glow.h 2010-10-15 03:57:18 +0000
+++ plugins/group/src/glow.h 2012-09-08 00:13:22 +0000
@@ -29,15 +29,15 @@
2929
30#include "group.h"30#include "group.h"
31 31
32#define GLOWQUAD_TOPLEFT 032extern const unsigned short GLOWQUAD_TOPLEFT;
33#define GLOWQUAD_TOPRIGHT 133extern const unsigned short GLOWQUAD_TOPRIGHT;
34#define GLOWQUAD_BOTTOMLEFT 234extern const unsigned short GLOWQUAD_BOTTOMLEFT;
35#define GLOWQUAD_BOTTOMRIGHT 335extern const unsigned short GLOWQUAD_BOTTOMRIGHT;
36#define GLOWQUAD_TOP 436extern const unsigned short GLOWQUAD_TOP;
37#define GLOWQUAD_BOTTOM 537extern const unsigned short GLOWQUAD_BOTTOM;
38#define GLOWQUAD_LEFT 638extern const unsigned short GLOWQUAD_LEFT;
39#define GLOWQUAD_RIGHT 739extern const unsigned short GLOWQUAD_RIGHT;
40#define NUM_GLOWQUADS 840extern const unsigned short NUM_GLOWQUADS;
4141
42/* Represents a particular glow texture, so here42/* Represents a particular glow texture, so here
43 * we have hardcoded in the texture data, the offset43 * we have hardcoded in the texture data, the offset
4444
=== modified file 'plugins/group/src/group.cpp'
--- plugins/group/src/group.cpp 2012-07-30 09:53:16 +0000
+++ plugins/group/src/group.cpp 2012-09-08 00:13:22 +0000
@@ -26,6 +26,8 @@
2626
27#include "group.h"27#include "group.h"
2828
29const double PI = 3.14159265359f;
30
29/*31/*
30 * GroupExp class32 * GroupExp class
31 *33 *
@@ -1559,7 +1561,7 @@
1559 */1561 */
15601562
1561/* the radius to determine if it was a click or a drag */1563/* the radius to determine if it was a click or a drag */
1562#define RADIUS 51564static const unsigned short RADIUS = 5;
15631565
1564void1566void
1565GroupScreen::handleMotionEvent (int xRoot, int yRoot)1567GroupScreen::handleMotionEvent (int xRoot, int yRoot)
15661568
=== modified file 'plugins/group/src/group.h'
--- plugins/group/src/group.h 2012-09-04 15:33:44 +0000
+++ plugins/group/src/group.h 2012-09-08 00:13:22 +0000
@@ -85,7 +85,7 @@
85 * Constants85 * Constants
86 *86 *
87 */87 */
88#define PI 3.141592653589788extern const double PI;
8989
90/*90/*
91 * Helpers91 * Helpers
9292
=== modified file 'plugins/group/src/tab.cpp'
--- plugins/group/src/tab.cpp 2012-07-30 12:58:44 +0000
+++ plugins/group/src/tab.cpp 2012-09-08 00:13:22 +0000
@@ -2187,7 +2187,7 @@
2187 properly - however the best way would be if slot->mRegion was2187 properly - however the best way would be if slot->mRegion was
2188 sized including the border */2188 sized including the border */
21892189
2190#define DAMAGE_BUFFER 202190static const unsigned short DAMAGE_BUFFER = 20;
21912191
2192 /* If there is a front slot in this bar, then we need to damage2192 /* If there is a front slot in this bar, then we need to damage
2193 * areas just outside where the slot might be sitting */2193 * areas just outside where the slot might be sitting */
21942194
=== modified file 'plugins/imgpng/src/imgpng.cpp'
--- plugins/imgpng/src/imgpng.cpp 2012-01-18 16:26:45 +0000
+++ plugins/imgpng/src/imgpng.cpp 2012-09-08 00:13:22 +0000
@@ -36,6 +36,8 @@
3636
37COMPIZ_PLUGIN_20090315 (imgpng, PngPluginVTable)37COMPIZ_PLUGIN_20090315 (imgpng, PngPluginVTable)
3838
39const unsigned short PNG_SIG_SIZE = 8;
40
39PngScreen::PngScreen (CompScreen *screen) :41PngScreen::PngScreen (CompScreen *screen) :
40 PluginClassHandler<PngScreen, CompScreen> (screen)42 PluginClassHandler<PngScreen, CompScreen> (screen)
41{43{
4244
=== modified file 'plugins/imgpng/src/imgpng.h'
--- plugins/imgpng/src/imgpng.h 2012-01-18 16:26:45 +0000
+++ plugins/imgpng/src/imgpng.h 2012-09-08 00:13:22 +0000
@@ -34,7 +34,7 @@
3434
35#include <iosfwd>35#include <iosfwd>
3636
37#define PNG_SIG_SIZE 837extern const unsigned short PNG_SIG_SIZE;
3838
39class PngScreen :39class PngScreen :
40 public ScreenInterface,40 public ScreenInterface,
4141
=== modified file 'plugins/maximumize/src/maximumize.cpp'
--- plugins/maximumize/src/maximumize.cpp 2011-03-14 16:04:58 +0000
+++ plugins/maximumize/src/maximumize.cpp 2012-09-08 00:13:22 +0000
@@ -31,6 +31,10 @@
3131
32COMPIZ_PLUGIN_20090315 (maximumize, MaximumizePluginVTable);32COMPIZ_PLUGIN_20090315 (maximumize, MaximumizePluginVTable);
3333
34/* Convenience constants to make the code more readable (hopefully) */
35const short REDUCE = -1;
36const unsigned short INCREASE = 1;
37
34/* Returns true if rectangles a and b intersect by at least 40 in both38/* Returns true if rectangles a and b intersect by at least 40 in both
35 * directions39 * directions
36 */40 */
3741
=== modified file 'plugins/maximumize/src/maximumize.h'
--- plugins/maximumize/src/maximumize.h 2009-03-20 07:58:25 +0000
+++ plugins/maximumize/src/maximumize.h 2012-09-08 00:13:22 +0000
@@ -31,9 +31,9 @@
3131
32#include "maximumize_options.h"32#include "maximumize_options.h"
3333
34/* Convenience macros to make the code more readable (hopefully) */34/* Convenience constants to make the code more readable (hopefully) */
35#define REDUCE -135extern const short REDUCE;
36#define INCREASE 136extern const unsigned short INCREASE;
3737
38typedef struct38typedef struct
39{39{
4040
=== modified file 'plugins/mousepoll/src/mousepoll.cpp'
--- plugins/mousepoll/src/mousepoll.cpp 2012-07-30 09:53:16 +0000
+++ plugins/mousepoll/src/mousepoll.cpp 2012-09-08 00:13:22 +0000
@@ -24,6 +24,9 @@
2424
25COMPIZ_PLUGIN_20090315 (mousepoll, MousepollPluginVTable);25COMPIZ_PLUGIN_20090315 (mousepoll, MousepollPluginVTable);
2626
27const unsigned short MP_OPTION_MOUSE_POLL_INTERVAL = 0;
28const unsigned short MP_OPTION_NUM = 1;
29
27bool30bool
28MousepollScreen::getMousePosition ()31MousepollScreen::getMousePosition ()
29{32{
3033
=== modified file 'plugins/mousepoll/src/private.h'
--- plugins/mousepoll/src/private.h 2009-03-16 05:20:59 +0000
+++ plugins/mousepoll/src/private.h 2012-09-08 00:13:22 +0000
@@ -34,8 +34,8 @@
34 MP_DISPLAY_OPTION_NUM34 MP_DISPLAY_OPTION_NUM
35} MousepollDisplayOptions;35} MousepollDisplayOptions;
3636
37#define MP_OPTION_MOUSE_POLL_INTERVAL 037extern const unsigned short MP_OPTION_MOUSE_POLL_INTERVAL;
38#define MP_OPTION_NUM 138extern const unsigned short MP_OPTION_NUM;
3939
40class MousepollScreen :40class MousepollScreen :
41 public PluginClassHandler <MousepollScreen, CompScreen, COMPIZ_MOUSEPOLL_ABI>,41 public PluginClassHandler <MousepollScreen, CompScreen, COMPIZ_MOUSEPOLL_ABI>,
4242
=== modified file 'plugins/move/src/move.cpp'
--- plugins/move/src/move.cpp 2012-04-19 12:06:05 +0000
+++ plugins/move/src/move.cpp 2012-09-08 00:13:22 +0000
@@ -34,6 +34,11 @@
3434
35COMPIZ_PLUGIN_20090315 (move, MovePluginVTable)35COMPIZ_PLUGIN_20090315 (move, MovePluginVTable)
3636
37const unsigned short KEY_MOVE_INC = 24;
38
39const unsigned short SNAP_BACK = 20;
40const unsigned short SNAP_OFF = 100;
41
37static bool42static bool
38moveInitiate (CompAction *action,43moveInitiate (CompAction *action,
39 CompAction::State state,44 CompAction::State state,
4045
=== modified file 'plugins/move/src/move.h'
--- plugins/move/src/move.h 2012-02-01 17:49:07 +0000
+++ plugins/move/src/move.h 2012-09-08 00:13:22 +0000
@@ -34,10 +34,10 @@
3434
35#define NUM_KEYS (sizeof (mKeys) / sizeof (mKeys[0]))35#define NUM_KEYS (sizeof (mKeys) / sizeof (mKeys[0]))
3636
37#define KEY_MOVE_INC 2437extern const unsigned short KEY_MOVE_INC;
3838
39#define SNAP_BACK 2039extern const unsigned short SNAP_BACK;
40#define SNAP_OFF 10040extern const unsigned short SNAP_OFF;
4141
42struct _MoveKeys {42struct _MoveKeys {
43 const char *name;43 const char *name;
4444
=== modified file 'plugins/notification/src/notification.cpp'
--- plugins/notification/src/notification.cpp 2012-05-18 06:52:20 +0000
+++ plugins/notification/src/notification.cpp 2012-09-08 00:13:22 +0000
@@ -26,6 +26,8 @@
2626
27COMPIZ_PLUGIN_20090315 (notification, NotificationPluginVTable);27COMPIZ_PLUGIN_20090315 (notification, NotificationPluginVTable);
2828
29const std::string IMAGE_DIR(".compiz/images");
30
29/* libnotify 0.7 introduced proper NOTIFY_CHECK_VERSION macro */31/* libnotify 0.7 introduced proper NOTIFY_CHECK_VERSION macro */
30#if defined(NOTIFY_CHECK_VERSION) && !defined(HAVE_LIBNOTIFY_0_6_1)32#if defined(NOTIFY_CHECK_VERSION) && !defined(HAVE_LIBNOTIFY_0_6_1)
31#if NOTIFY_CHECK_VERSION(0,6,1)33#if NOTIFY_CHECK_VERSION(0,6,1)
@@ -58,7 +60,7 @@
58 in $PREFIX/share/compiz, not in the home dir */60 in $PREFIX/share/compiz, not in the home dir */
59 iconUri = "file://";61 iconUri = "file://";
60 iconUri += homeDir;62 iconUri += homeDir;
61 iconUri += "/" IMAGE_DIR "/compiz.png";63 iconUri += "/" + IMAGE_DIR + "/compiz.png";
62 logLevel = (char *) logLevelToString (level);64 logLevel = (char *) logLevelToString (level);
6365
64 n = notify_notification_new (logLevel, message,66 n = notify_notification_new (logLevel, message,
6567
=== modified file 'plugins/notification/src/notification.h'
--- plugins/notification/src/notification.h 2009-03-16 01:57:00 +0000
+++ plugins/notification/src/notification.h 2012-09-08 00:13:22 +0000
@@ -29,7 +29,7 @@
2929
30#include "notification_options.h"30#include "notification_options.h"
3131
32#define IMAGE_DIR ".compiz/images"32extern const std::string IMAGE_DIR;
3333
34class NotificationScreen :34class NotificationScreen :
35 public PluginClassHandler <NotificationScreen, CompScreen>,35 public PluginClassHandler <NotificationScreen, CompScreen>,
3636
=== modified file 'plugins/obs/src/obs.cpp'
--- plugins/obs/src/obs.cpp 2012-09-04 15:33:44 +0000
+++ plugins/obs/src/obs.cpp 2012-09-08 00:13:22 +0000
@@ -27,6 +27,10 @@
2727
28COMPIZ_PLUGIN_20090315 (obs, ObsPluginVTable);28COMPIZ_PLUGIN_20090315 (obs, ObsPluginVTable);
2929
30const unsigned short MODIFIER_OPACITY = 0;
31const unsigned short MODIFIER_SATURATION = 1;
32const unsigned short MODIFIER_BRIGHTNESS = 2;
33
30void34void
31ObsWindow::changePaintModifier (unsigned int modifier,35ObsWindow::changePaintModifier (unsigned int modifier,
32 int direction)36 int direction)
3337
=== modified file 'plugins/obs/src/obs.h'
--- plugins/obs/src/obs.h 2012-09-04 15:33:44 +0000
+++ plugins/obs/src/obs.h 2012-09-08 00:13:22 +0000
@@ -31,10 +31,10 @@
3131
32#include "obs_options.h"32#include "obs_options.h"
3333
34#define MODIFIER_OPACITY 034extern const unsigned short MODIFIER_OPACITY;
35#define MODIFIER_SATURATION 135extern const unsigned short MODIFIER_SATURATION;
36#define MODIFIER_BRIGHTNESS 236extern const unsigned short MODIFIER_BRIGHTNESS;
37#define MODIFIER_COUNT 337#define MODIFIER_COUNT 3
3838
39class ObsScreen :39class ObsScreen :
40 public ScreenInterface,40 public ScreenInterface,
4141
=== modified file 'plugins/opacify/src/opacify.cpp'
--- plugins/opacify/src/opacify.cpp 2012-09-04 15:33:44 +0000
+++ plugins/opacify/src/opacify.cpp 2012-09-08 00:13:22 +0000
@@ -28,6 +28,8 @@
2828
29COMPIZ_PLUGIN_20090315 (opacify, OpacifyPluginVTable);29COMPIZ_PLUGIN_20090315 (opacify, OpacifyPluginVTable);
3030
31const unsigned short MAX_WINDOWS = 64;
32
31void33void
32setFunctions (bool enabled)34setFunctions (bool enabled)
33{35{
3436
=== modified file 'plugins/opacify/src/opacify.h'
--- plugins/opacify/src/opacify.h 2012-09-04 15:33:44 +0000
+++ plugins/opacify/src/opacify.h 2012-09-08 00:13:22 +0000
@@ -31,7 +31,7 @@
31#include "opacify_options.h"31#include "opacify_options.h"
3232
33/* Size of the Window array storing passive windows. */33/* Size of the Window array storing passive windows. */
34#define MAX_WINDOWS 6434extern const unsigned short MAX_WINDOWS;
3535
36class OpacifyScreen :36class OpacifyScreen :
37 public PluginClassHandler <OpacifyScreen, CompScreen>,37 public PluginClassHandler <OpacifyScreen, CompScreen>,
3838
=== modified file 'plugins/opengl/include/opengl/opengl.h'
--- plugins/opengl/include/opengl/opengl.h 2012-08-14 08:42:15 +0000
+++ plugins/opengl/include/opengl/opengl.h 2012-09-08 00:13:22 +0000
@@ -78,11 +78,11 @@
78/**78/**
79 * camera distance from screen, 0.5 * tan (FOV)79 * camera distance from screen, 0.5 * tan (FOV)
80 */80 */
81#define DEFAULT_Z_CAMERA 0.866025404f81extern const float DEFAULT_Z_CAMERA;
8282
83#define RED_SATURATION_WEIGHT 0.30f83extern const float RED_SATURATION_WEIGHT;
84#define GREEN_SATURATION_WEIGHT 0.59f84extern const float GREEN_SATURATION_WEIGHT;
85#define BLUE_SATURATION_WEIGHT 0.11f85extern const float BLUE_SATURATION_WEIGHT;
8686
87class PrivateGLScreen;87class PrivateGLScreen;
88class PrivateGLWindow;88class PrivateGLWindow;
@@ -571,9 +571,9 @@
571};571};
572#endif572#endif
573573
574#define NOTHING_TRANS_FILTER 0574extern const unsigned short NOTHING_TRANS_FILTER;
575#define SCREEN_TRANS_FILTER 1575extern const unsigned short SCREEN_TRANS_FILTER;
576#define WINDOW_TRANS_FILTER 2576extern const unsigned short WINDOW_TRANS_FILTER;
577577
578578
579extern GLScreenPaintAttrib defaultScreenPaintAttrib;579extern GLScreenPaintAttrib defaultScreenPaintAttrib;
580580
=== modified file 'plugins/opengl/src/opengl.cpp'
--- plugins/opengl/src/opengl.cpp 2012-01-18 16:26:45 +0000
+++ plugins/opengl/src/opengl.cpp 2012-09-08 00:13:22 +0000
@@ -28,6 +28,16 @@
28#include <core/pluginclasshandler.h>28#include <core/pluginclasshandler.h>
29#include "privates.h"29#include "privates.h"
3030
31const float DEFAULT_Z_CAMERA = 0.866025404f;
32
33const float RED_SATURATION_WEIGHT = 0.30f;
34const float GREEN_SATURATION_WEIGHT = 0.59f;
35const float BLUE_SATURATION_WEIGHT = 0.11f;
36
37const unsigned short NOTHING_TRANS_FILTER = 0;
38const unsigned short SCREEN_TRANS_FILTER = 1;
39const unsigned short WINDOW_TRANS_FILTER = 2;
40
31CompOption::Vector &41CompOption::Vector &
32GLScreen::getOptions ()42GLScreen::getOptions ()
33{43{
3444
=== modified file 'plugins/place/src/place.cpp'
--- plugins/place/src/place.cpp 2012-09-05 23:54:21 +0000
+++ plugins/place/src/place.cpp 2012-09-08 00:13:22 +0000
@@ -943,7 +943,7 @@
943 /* arbitrary-ish threshold, honors user attempts to943 /* arbitrary-ish threshold, honors user attempts to
944 * manually cascade.944 * manually cascade.
945 */945 */
946#define CASCADE_FUZZ 15946static const unsigned short CASCADE_FUZZ = 15;
947947
948 xThreshold = MAX (this->extents ().left, CASCADE_FUZZ);948 xThreshold = MAX (this->extents ().left, CASCADE_FUZZ);
949 yThreshold = MAX (this->extents ().top, CASCADE_FUZZ);949 yThreshold = MAX (this->extents ().top, CASCADE_FUZZ);
@@ -988,7 +988,7 @@
988 cascadeX = MAX (0, workArea.x ());988 cascadeX = MAX (0, workArea.x ());
989 cascadeY = MAX (0, workArea.y ());989 cascadeY = MAX (0, workArea.y ());
990990
991#define CASCADE_INTERVAL 50 /* space between top-left corners of cascades */991static const unsigned short CASCADE_INTERVAL = 50; /* space between top-left corners of cascades */
992992
993 cascadeStage += 1;993 cascadeStage += 1;
994 cascadeX += CASCADE_INTERVAL * cascadeStage;994 cascadeX += CASCADE_INTERVAL * cascadeStage;
995995
=== modified file 'plugins/place/src/smart/src/smart.cpp'
--- plugins/place/src/smart/src/smart.cpp 2012-02-02 17:01:15 +0000
+++ plugins/place/src/smart/src/smart.cpp 2012-09-08 00:13:22 +0000
@@ -6,9 +6,9 @@
6#endif6#endif
77
8/* overlap types */8/* overlap types */
9#define NONE 09static const unsigned short NONE = 0;
10#define H_WRONG -110static const short H_WRONG = -1;
11#define W_WRONG -211static const short W_WRONG = -2;
1212
13namespace compiz13namespace compiz
14{14{
1515
=== modified file 'plugins/put/src/put.cpp'
--- plugins/put/src/put.cpp 2011-03-14 15:53:05 +0000
+++ plugins/put/src/put.cpp 2012-09-08 00:13:22 +0000
@@ -106,10 +106,10 @@
106 * PS: Decorations are icky.106 * PS: Decorations are icky.
107 */107 */
108108
109#define LEFT 0109static const unsigned short LEFT = 0;
110#define RIGHT 1110static const unsigned short RIGHT = 1;
111#define TOP 2111static const unsigned short TOP = 2;
112#define BOTTOM 3112static const unsigned short BOTTOM = 3;
113113
114inline void114inline void
115addToCorner (CompRect& rect,115addToCorner (CompRect& rect,
116116
=== modified file 'plugins/resize/src/logic/include/resize-defs.h'
--- plugins/resize/src/logic/include/resize-defs.h 2012-08-15 21:36:40 +0000
+++ plugins/resize/src/logic/include/resize-defs.h 2012-09-08 00:13:22 +0000
@@ -36,7 +36,7 @@
3636
37#define NUM_KEYS 437#define NUM_KEYS 4
3838
39#define MIN_KEY_WIDTH_INC 2439#define MIN_KEY_WIDTH_INC 24
40#define MIN_KEY_HEIGHT_INC 2440#define MIN_KEY_HEIGHT_INC 24
4141
42#endif /* RESIZEDEFS_H */42#endif /* RESIZEDEFS_H */
4343
=== modified file 'plugins/resize/src/logic/src/resize-logic.cpp'
--- plugins/resize/src/logic/src/resize-logic.cpp 2012-09-03 21:21:12 +0000
+++ plugins/resize/src/logic/src/resize-logic.cpp 2012-09-08 00:13:22 +0000
@@ -43,10 +43,10 @@
4343
44#define XWINDOWCHANGES_INIT {0, 0, 0, 0, 0, None, 0}44#define XWINDOWCHANGES_INIT {0, 0, 0, 0, 0, None, 0}
4545
46#define TOUCH_LEFT 146static const unsigned short TOUCH_LEFT = 1;
47#define TOUCH_RIGHT 247static const unsigned short TOUCH_RIGHT = 2;
48#define TOUCH_TOP 348static const unsigned short TOUCH_TOP = 3;
49#define TOUCH_BOTTOM 449static const unsigned short TOUCH_BOTTOM = 4;
5050
51using namespace resize;51using namespace resize;
5252
5353
=== modified file 'plugins/resizeinfo/src/resizeinfo.cpp'
--- plugins/resizeinfo/src/resizeinfo.cpp 2012-07-30 07:10:52 +0000
+++ plugins/resizeinfo/src/resizeinfo.cpp 2012-09-08 00:13:22 +0000
@@ -25,6 +25,11 @@
2525
26COMPIZ_PLUGIN_20090315 (resizeinfo, InfoPluginVTable);26COMPIZ_PLUGIN_20090315 (resizeinfo, InfoPluginVTable);
2727
28const unsigned short RESIZE_POPUP_WIDTH = 85;
29const unsigned short RESIZE_POPUP_HEIGHT = 50;
30
31const double PI = 3.14159265359f;
32
28/* Set up an InfoLayer to build a cairo->opengl texture pipeline */33/* Set up an InfoLayer to build a cairo->opengl texture pipeline */
29InfoLayer::~InfoLayer ()34InfoLayer::~InfoLayer ()
30{35{
3136
=== modified file 'plugins/resizeinfo/src/resizeinfo.h'
--- plugins/resizeinfo/src/resizeinfo.h 2012-07-30 07:10:52 +0000
+++ plugins/resizeinfo/src/resizeinfo.h 2012-09-08 00:13:22 +0000
@@ -34,10 +34,10 @@
3434
35#include "resizeinfo_options.h"35#include "resizeinfo_options.h"
3636
37#define RESIZE_POPUP_WIDTH 8537extern const unsigned short RESIZE_POPUP_WIDTH;
38#define RESIZE_POPUP_HEIGHT 5038extern const unsigned short RESIZE_POPUP_HEIGHT;
3939
40#define PI 3.141592640extern const double PI;
4141
42/* Cairo helper class */42/* Cairo helper class */
4343
4444
=== modified file 'plugins/ring/src/ring.cpp'
--- plugins/ring/src/ring.cpp 2012-08-14 06:33:22 +0000
+++ plugins/ring/src/ring.cpp 2012-09-08 00:13:22 +0000
@@ -31,6 +31,10 @@
3131
32COMPIZ_PLUGIN_20090315 (ring, RingPluginVTable);32COMPIZ_PLUGIN_20090315 (ring, RingPluginVTable);
3333
34const double PI = 3.14159265359f;
35
36const unsigned short ICON_SIZE = 64;
37
34bool textAvailable;38bool textAvailable;
3539
36static void40static void
3741
=== modified file 'plugins/ring/src/ring.h'
--- plugins/ring/src/ring.h 2012-05-22 13:55:35 +0000
+++ plugins/ring/src/ring.h 2012-09-08 00:13:22 +0000
@@ -246,10 +246,10 @@
246 adjustVelocity ();246 adjustVelocity ();
247};247};
248248
249#define PI 3.1415926249extern const double PI;
250#define DIST_ROT (3600 / mWindows.size ())250#define DIST_ROT (3600 / mWindows.size ())
251#define DIST_ROT_w (3600 / rs->mWindows.size ())251#define DIST_ROT_w (3600 / rs->mWindows.size ())
252#define ICON_SIZE 64252extern const unsigned short ICON_SIZE;
253253
254#define RING_SCREEN(s) \254#define RING_SCREEN(s) \
255 RingScreen *rs = RingScreen::get (s)255 RingScreen *rs = RingScreen::get (s)
256256
=== modified file 'plugins/rotate/src/rotate.cpp'
--- plugins/rotate/src/rotate.cpp 2012-01-18 16:26:45 +0000
+++ plugins/rotate/src/rotate.cpp 2012-09-08 00:13:22 +0000
@@ -28,7 +28,7 @@
2828
29#include <math.h>29#include <math.h>
3030
31#define ROTATE_POINTER_SENSITIVITY_FACTOR 0.05f31static const float ROTATE_POINTER_SENSITIVITY_FACTOR = 0.05f;
3232
33COMPIZ_PLUGIN_20090315 (rotate, RotatePluginVTable)33COMPIZ_PLUGIN_20090315 (rotate, RotatePluginVTable)
3434
3535
=== modified file 'plugins/scaleaddon/src/scaleaddon.cpp'
--- plugins/scaleaddon/src/scaleaddon.cpp 2012-07-30 07:10:52 +0000
+++ plugins/scaleaddon/src/scaleaddon.cpp 2012-09-08 00:13:22 +0000
@@ -545,8 +545,8 @@
545 * inspired by smallwindows (smallwindows.sf.net) by Jens Egeblad545 * inspired by smallwindows (smallwindows.sf.net) by Jens Egeblad
546 * FIXME: broken.546 * FIXME: broken.
547 * */547 * */
548#define ORGANIC_STEP 0.05
549#if 0548#if 0
549static const double ORGANIC_STEP = 0.05f;
550static int550static int
551organicCompareWindows (const void *elem1,551organicCompareWindows (const void *elem1,
552 const void *elem2)552 const void *elem2)
553553
=== modified file 'plugins/shelf/src/shelf.cpp'
--- plugins/shelf/src/shelf.cpp 2012-05-18 06:52:20 +0000
+++ plugins/shelf/src/shelf.cpp 2012-09-08 00:13:22 +0000
@@ -36,6 +36,8 @@
3636
37COMPIZ_PLUGIN_20090315 (shelf, ShelfPluginVTable);37COMPIZ_PLUGIN_20090315 (shelf, ShelfPluginVTable);
3838
39const float SHELF_MIN_SIZE = 50.0f; // Minimum pixelsize a window can be scaled to
40
39/* Enables / Disables screen paint functions */41/* Enables / Disables screen paint functions */
40static void42static void
41toggleScreenFunctions (bool enabled)43toggleScreenFunctions (bool enabled)
4244
=== modified file 'plugins/shelf/src/shelf.h'
--- plugins/shelf/src/shelf.h 2010-08-04 16:09:38 +0000
+++ plugins/shelf/src/shelf.h 2012-09-08 00:13:22 +0000
@@ -221,7 +221,7 @@
221#define SHELF_SCREEN(w) \221#define SHELF_SCREEN(w) \
222 ShelfScreen *ss = ShelfScreen::get (w)222 ShelfScreen *ss = ShelfScreen::get (w)
223223
224#define SHELF_MIN_SIZE 50.0f // Minimum pixelsize a window can be scaled to224extern const float SHELF_MIN_SIZE; // Minimum pixelsize a window can be scaled to
225225
226226
227class ShelfPluginVTable :227class ShelfPluginVTable :
228228
=== modified file 'plugins/shift/src/shift.cpp'
--- plugins/shift/src/shift.cpp 2012-08-14 06:33:22 +0000
+++ plugins/shift/src/shift.cpp 2012-09-08 00:13:22 +0000
@@ -37,6 +37,8 @@
3737
38COMPIZ_PLUGIN_20090315 (shift, ShiftPluginVTable);38COMPIZ_PLUGIN_20090315 (shift, ShiftPluginVTable);
3939
40const double PI = 3.14159265359f;
41
40bool textAvailable = false;42bool textAvailable = false;
4143
42void44void
4345
=== modified file 'plugins/shift/src/shift.h'
--- plugins/shift/src/shift.h 2012-05-22 13:58:31 +0000
+++ plugins/shift/src/shift.h 2012-09-08 00:13:22 +0000
@@ -305,7 +305,7 @@
305305
306};306};
307307
308#define PI 3.1415926308extern const double PI;
309309
310#define SHIFT_WINDOW(w) \310#define SHIFT_WINDOW(w) \
311 ShiftWindow *sw = ShiftWindow::get (w)311 ShiftWindow *sw = ShiftWindow::get (w)
312312
=== modified file 'plugins/showdesktop/src/showdesktop.cpp'
--- plugins/showdesktop/src/showdesktop.cpp 2012-05-18 06:52:20 +0000
+++ plugins/showdesktop/src/showdesktop.cpp 2012-09-08 00:13:22 +0000
@@ -37,6 +37,11 @@
3737
38COMPIZ_PLUGIN_20090315 (showdesktop, ShowdesktopPluginVTable);38COMPIZ_PLUGIN_20090315 (showdesktop, ShowdesktopPluginVTable);
3939
40const unsigned short SD_STATE_OFF = 0;
41const unsigned short SD_STATE_ACTIVATING = 1;
42const unsigned short SD_STATE_ON = 2;
43const unsigned short SD_STATE_DEACTIVATING = 3;
44
40/* non interfacing code, aka the logic of the plugin */45/* non interfacing code, aka the logic of the plugin */
41bool46bool
42ShowdesktopWindow::is ()47ShowdesktopWindow::is ()
4348
=== modified file 'plugins/showdesktop/src/showdesktop.h'
--- plugins/showdesktop/src/showdesktop.h 2011-03-14 15:47:56 +0000
+++ plugins/showdesktop/src/showdesktop.h 2012-09-08 00:13:22 +0000
@@ -54,10 +54,10 @@
54#define MOVE_LEFT(w) ((WIN_X (w) + (WIN_W (w) / 2)) < (screen->width () / 2))54#define MOVE_LEFT(w) ((WIN_X (w) + (WIN_W (w) / 2)) < (screen->width () / 2))
55#define MOVE_UP(w) ((WIN_Y (w) + (WIN_H (w) / 2)) < (screen->height () / 2))55#define MOVE_UP(w) ((WIN_Y (w) + (WIN_H (w) / 2)) < (screen->height () / 2))
5656
57#define SD_STATE_OFF 057extern const unsigned short SD_STATE_OFF;
58#define SD_STATE_ACTIVATING 158extern const unsigned short SD_STATE_ACTIVATING;
59#define SD_STATE_ON 259extern const unsigned short SD_STATE_ON;
60#define SD_STATE_DEACTIVATING 360extern const unsigned short SD_STATE_DEACTIVATING;
6161
62class ShowdesktopPlacer62class ShowdesktopPlacer
63{63{
6464
=== modified file 'plugins/splash/src/splash.cpp'
--- plugins/splash/src/splash.cpp 2011-02-24 06:28:27 +0000
+++ plugins/splash/src/splash.cpp 2012-09-08 00:13:22 +0000
@@ -23,6 +23,9 @@
2323
24COMPIZ_PLUGIN_20090315 (splash, SplashPluginVTable);24COMPIZ_PLUGIN_20090315 (splash, SplashPluginVTable);
2525
26const std::string SPLASH_BACKGROUND_DEFAULT("");
27const std::string SPLASH_LOGO_DEFAULT("");
28
26void29void
27SplashScreen::preparePaint (int ms)30SplashScreen::preparePaint (int ms)
28{31{
2932
=== modified file 'plugins/splash/src/splash.h'
--- plugins/splash/src/splash.h 2009-03-16 01:58:28 +0000
+++ plugins/splash/src/splash.h 2012-09-08 00:13:22 +0000
@@ -34,8 +34,8 @@
34#define MESH_W 1634#define MESH_W 16
35#define MESH_H 1635#define MESH_H 16
3636
37#define SPLASH_BACKGROUND_DEFAULT ""37extern const std::string SPLASH_BACKGROUND_DEFAULT;
38#define SPLASH_LOGO_DEFAULT ""38extern const std::string SPLASH_LOGO_DEFAULT;
3939
40class SplashScreen :40class SplashScreen :
41 public PluginClassHandler <SplashScreen, CompScreen>,41 public PluginClassHandler <SplashScreen, CompScreen>,
4242
=== modified file 'plugins/staticswitcher/src/staticswitcher.cpp'
--- plugins/staticswitcher/src/staticswitcher.cpp 2012-08-08 08:54:15 +0000
+++ plugins/staticswitcher/src/staticswitcher.cpp 2012-09-08 00:13:22 +0000
@@ -27,6 +27,9 @@
2727
28COMPIZ_PLUGIN_20090315 (staticswitcher, StaticSwitchPluginVTable)28COMPIZ_PLUGIN_20090315 (staticswitcher, StaticSwitchPluginVTable)
2929
30const unsigned short PREVIEWSIZE = 150;
31const unsigned short BORDER = 10;
32
30void33void
31StaticSwitchScreen::updatePopupWindow ()34StaticSwitchScreen::updatePopupWindow ()
32{35{
3336
=== modified file 'plugins/staticswitcher/src/staticswitcher.h'
--- plugins/staticswitcher/src/staticswitcher.h 2012-07-30 07:10:52 +0000
+++ plugins/staticswitcher/src/staticswitcher.h 2012-09-08 00:13:22 +0000
@@ -159,8 +159,8 @@
159159
160#define MAX_ICON_SIZE 256160#define MAX_ICON_SIZE 256
161161
162#define PREVIEWSIZE 150162extern const unsigned short PREVIEWSIZE;
163#define BORDER 10163extern const unsigned short BORDER;
164164
165#define SWITCH_SCREEN(s) \165#define SWITCH_SCREEN(s) \
166 StaticSwitchScreen *ss = StaticSwitchScreen::get (s)166 StaticSwitchScreen *ss = StaticSwitchScreen::get (s)
167167
=== modified file 'plugins/switcher/src/switcher.cpp'
--- plugins/switcher/src/switcher.cpp 2012-08-06 01:36:00 +0000
+++ plugins/switcher/src/switcher.cpp 2012-09-08 00:13:22 +0000
@@ -27,6 +27,12 @@
2727
28COMPIZ_PLUGIN_20090315 (switcher, SwitchPluginVTable)28COMPIZ_PLUGIN_20090315 (switcher, SwitchPluginVTable)
2929
30const unsigned short WIDTH = 212;
31const unsigned short HEIGHT = 192;
32const unsigned short SPACE = 10;
33
34const unsigned short BOX_WIDTH = 3;
35
30#define XWINDOWCHANGES_INIT {0, 0, 0, 0, 0, None, 0}36#define XWINDOWCHANGES_INIT {0, 0, 0, 0, 0, None, 0}
3137
32static float _boxVertices[] =38static float _boxVertices[] =
3339
=== modified file 'plugins/switcher/src/switcher.h'
--- plugins/switcher/src/switcher.h 2010-12-07 15:25:17 +0000
+++ plugins/switcher/src/switcher.h 2012-09-08 00:13:22 +0000
@@ -154,11 +154,11 @@
154 unsigned long decorations;154 unsigned long decorations;
155} MwmHints;155} MwmHints;
156156
157#define WIDTH 212157extern const unsigned short WIDTH;
158#define HEIGHT 192158extern const unsigned short HEIGHT;
159#define SPACE 10159extern const unsigned short SPACE;
160160
161#define BOX_WIDTH 3161extern const unsigned short BOX_WIDTH;
162162
163#define WINDOW_WIDTH(count) (WIDTH * (count) + (SPACE << 1))163#define WINDOW_WIDTH(count) (WIDTH * (count) + (SPACE << 1))
164#define WINDOW_HEIGHT (HEIGHT + (SPACE << 1))164#define WINDOW_HEIGHT (HEIGHT + (SPACE << 1))
165165
=== modified file 'plugins/td/src/3d.cpp'
--- plugins/td/src/3d.cpp 2012-07-30 10:15:41 +0000
+++ plugins/td/src/3d.cpp 2012-09-08 00:13:22 +0000
@@ -2,6 +2,8 @@
22
3COMPIZ_PLUGIN_20090315 (td, TdPluginVTable);3COMPIZ_PLUGIN_20090315 (td, TdPluginVTable);
44
5const double PI = 3.14159265359f;
6
5void7void
6setFunctions (bool enabled)8setFunctions (bool enabled)
7{9{
810
=== modified file 'plugins/td/src/3d.h'
--- plugins/td/src/3d.h 2010-08-15 10:01:46 +0000
+++ plugins/td/src/3d.h 2012-09-08 00:13:22 +0000
@@ -43,7 +43,7 @@
4343
44#include "td_options.h"44#include "td_options.h"
4545
46#define PI 3.14159265359f46extern const double PI;
4747
48class TdScreen :48class TdScreen :
49 public PluginClassHandler <TdScreen, CompScreen>,49 public PluginClassHandler <TdScreen, CompScreen>,
5050
=== modified file 'plugins/text/src/text.cpp'
--- plugins/text/src/text.cpp 2012-07-30 07:10:52 +0000
+++ plugins/text/src/text.cpp 2012-09-08 00:13:22 +0000
@@ -27,7 +27,7 @@
2727
28#include "private.h"28#include "private.h"
2929
30#define PI 3.14159265359f30static const double PI = 3.14159265359f;
3131
32COMPIZ_PLUGIN_20090315 (text, TextPluginVTable);32COMPIZ_PLUGIN_20090315 (text, TextPluginVTable);
3333
3434
=== modified file 'plugins/thumbnail/src/thumbnail.cpp'
--- plugins/thumbnail/src/thumbnail.cpp 2012-08-06 01:36:00 +0000
+++ plugins/thumbnail/src/thumbnail.cpp 2012-09-08 00:13:22 +0000
@@ -32,6 +32,8 @@
3232
33COMPIZ_PLUGIN_20090315 (thumbnail, ThumbPluginVTable);33COMPIZ_PLUGIN_20090315 (thumbnail, ThumbPluginVTable);
3434
35const unsigned short TEXT_DISTANCE = 10;
36
35void37void
36ThumbScreen::freeThumbText (Thumbnail *t)38ThumbScreen::freeThumbText (Thumbnail *t)
37{39{
3840
=== modified file 'plugins/thumbnail/src/thumbnail.h'
--- plugins/thumbnail/src/thumbnail.h 2012-07-30 07:10:52 +0000
+++ plugins/thumbnail/src/thumbnail.h 2012-09-08 00:13:22 +0000
@@ -58,7 +58,7 @@
58#define WIN_W(w) ((w)->width () + (w)->border ().left + (w)->border ().right)58#define WIN_W(w) ((w)->width () + (w)->border ().left + (w)->border ().right)
59#define WIN_H(w) ((w)->height () + (w)->border ().top + (w)->border ().bottom)59#define WIN_H(w) ((w)->height () + (w)->border ().top + (w)->border ().bottom)
6060
61#define TEXT_DISTANCE 1061extern const unsigned short TEXT_DISTANCE;
6262
63bool textPluginLoaded;63bool textPluginLoaded;
6464
6565
=== modified file 'plugins/wall/src/wall.cpp'
--- plugins/wall/src/wall.cpp 2012-08-02 06:54:30 +0000
+++ plugins/wall/src/wall.cpp 2012-09-08 00:13:22 +0000
@@ -37,9 +37,9 @@
3737
38#include "wall.h"38#include "wall.h"
3939
40#define PI 3.14159265359f40static const double PI = 3.14159265359f;
41#define VIEWPORT_SWITCHER_SIZE 10041static const unsigned short VIEWPORT_SWITCHER_SIZE = 100;
42#define ARROW_SIZE 3342static const unsigned short ARROW_SIZE = 33;
4343
44#define getColorRGBA(name) \44#define getColorRGBA(name) \
45 r = optionGet##name##Red() / 65535.0f;\45 r = optionGet##name##Red() / 65535.0f;\
@@ -385,7 +385,7 @@
385}385}
386386
387/* movement remainder that gets ignored for direction calculation */387/* movement remainder that gets ignored for direction calculation */
388#define IGNORE_REMAINDER 0.05388static const float IGNORE_REMAINDER = 0.05f;
389389
390void390void
391WallScreen::determineMovementAngle ()391WallScreen::determineMovementAngle ()
392392
=== modified file 'plugins/water/src/water.cpp'
--- plugins/water/src/water.cpp 2012-09-05 23:54:21 +0000
+++ plugins/water/src/water.cpp 2012-09-08 00:13:22 +0000
@@ -31,6 +31,10 @@
3131
32COMPIZ_PLUGIN_20090315 (water, WaterPluginVTable)32COMPIZ_PLUGIN_20090315 (water, WaterPluginVTable)
3333
34const unsigned int TEXTURE_SIZE = 256;
35
36const float K = 0.1964f;
37
34static int waterLastPointerX = 0;38static int waterLastPointerX = 0;
35static int waterLastPointerY = 0;39static int waterLastPointerY = 0;
3640
3741
=== modified file 'plugins/water/src/water.h'
--- plugins/water/src/water.h 2012-07-30 07:10:52 +0000
+++ plugins/water/src/water.h 2012-09-08 00:13:22 +0000
@@ -37,9 +37,9 @@
37#define WATER_SCREEN(s) \37#define WATER_SCREEN(s) \
38 WaterScreen *ws = WaterScreen::get (s)38 WaterScreen *ws = WaterScreen::get (s)
3939
40#define TEXTURE_SIZE 25640extern const unsigned int TEXTURE_SIZE;
4141
42#define K 0.1964f42extern const float K;
4343
44#define TEXTURE_NUM 344#define TEXTURE_NUM 3
45#define PROG_NUM 345#define PROG_NUM 3
4646
=== modified file 'plugins/wobbly/src/wobbly.h'
--- plugins/wobbly/src/wobbly.h 2012-08-14 06:33:22 +0000
+++ plugins/wobbly/src/wobbly.h 2012-09-08 00:13:22 +0000
@@ -41,7 +41,7 @@
41 CompWindowTypeMenuMask | \41 CompWindowTypeMenuMask | \
42 CompWindowTypeUtilMask)42 CompWindowTypeUtilMask)
4343
44#define GRID_WIDTH 444#define GRID_WIDTH 4
45#define GRID_HEIGHT 445#define GRID_HEIGHT 4
4646
47#define MODEL_MAX_SPRINGS (GRID_WIDTH * GRID_HEIGHT * 2)47#define MODEL_MAX_SPRINGS (GRID_WIDTH * GRID_HEIGHT * 2)
4848
=== modified file 'src/event.cpp'
--- src/event.cpp 2012-08-07 04:17:07 +0000
+++ src/event.cpp 2012-09-08 00:13:22 +0000
@@ -1619,9 +1619,9 @@
1619 if (state & ~CompWindowStateHiddenMask)1619 if (state & ~CompWindowStateHiddenMask)
1620 {1620 {
16211621
1622#define _NET_WM_STATE_REMOVE 01622static const unsigned short _NET_WM_STATE_REMOVE = 0;
1623#define _NET_WM_STATE_ADD 11623static const unsigned short _NET_WM_STATE_ADD = 1;
1624#define _NET_WM_STATE_TOGGLE 21624static const unsigned short _NET_WM_STATE_TOGGLE = 2;
16251625
1626 switch (event->xclient.data.l[0]) {1626 switch (event->xclient.data.l[0]) {
1627 case _NET_WM_STATE_REMOVE:1627 case _NET_WM_STATE_REMOVE:
16281628
=== modified file 'src/screen.cpp'
--- src/screen.cpp 2012-08-03 10:12:25 +0000
+++ src/screen.cpp 2012-09-08 00:13:22 +0000
@@ -80,7 +80,7 @@
8080
81#define MwmHintsFunctions (1L << 0)81#define MwmHintsFunctions (1L << 0)
82#define MwmHintsDecorations (1L << 1)82#define MwmHintsDecorations (1L << 1)
83#define PropMotifWmHintElements 383static const unsigned short PropMotifWmHintElements = 3;
8484
85typedef struct {85typedef struct {
86 unsigned long flags;86 unsigned long flags;
@@ -1148,7 +1148,7 @@
1148 Atom property)1148 Atom property)
1149{1149{
11501150
1151#define N_TARGETS 41151static const unsigned short N_TARGETS = 4;
11521152
1153 Atom conversionTargets[N_TARGETS];1153 Atom conversionTargets[N_TARGETS];
11541154
@@ -1272,8 +1272,8 @@
1272 eventManager.quit ();1272 eventManager.quit ();
1273}1273}
12741274
1275#define IMAGEDIR "images"1275static const std::string IMAGEDIR("images");
1276#define HOMECOMPIZDIR ".compiz-1"1276static const std::string HOMECOMPIZDIR(".compiz-1");
12771277
1278bool1278bool
1279CompScreenImpl::readImageFromFile (CompString &name,1279CompScreenImpl::readImageFromFile (CompString &name,
@@ -2174,7 +2174,7 @@
2174 }2174 }
2175}2175}
21762176
2177#define STARTUP_TIMEOUT_DELAY 150002177static const unsigned int STARTUP_TIMEOUT_DELAY = 15000;
21782178
2179bool2179bool
2180cps::StartupSequence::handleStartupSequenceTimeout ()2180cps::StartupSequence::handleStartupSequenceTimeout ()
21812181
=== modified file 'src/timer/src/timer.cpp'
--- src/timer/src/timer.cpp 2012-08-08 02:22:12 +0000
+++ src/timer/src/timer.cpp 2012-09-08 00:13:22 +0000
@@ -79,7 +79,7 @@
79 return new CompTimeoutSource (ctx);79 return new CompTimeoutSource (ctx);
80}80}
8181
82#define COMPIZ_TIMEOUT_WAIT 1582static const unsigned short COMPIZ_TIMEOUT_WAIT = 15;
8383
84bool84bool
85CompTimeoutSource::prepare (int &timeout)85CompTimeoutSource::prepare (int &timeout)

Subscribers

People subscribed via source and target branches