diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2013-09-19 01:44:39 +0200 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2013-09-19 01:44:39 +0200 |
| commit | 55236335daa8be93ff280510e2d2caf278476f2c (patch) | |
| tree | aa95161a2e6c7948f0a926756068a4e84e88d1df /plugins/unityshell | |
| parent | 254b77b2fefd91688a2683681975745584ee7fd6 (diff) | |
UnityShell: fix compilation due to evil compiz #define's
(bzr r3506.5.18)
Diffstat (limited to 'plugins/unityshell')
| -rw-r--r-- | plugins/unityshell/src/unityshell.cpp | 6 | ||||
| -rw-r--r-- | plugins/unityshell/src/unityshell.h | 15 |
2 files changed, 17 insertions, 4 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp index 847890297..3d2dc0e71 100644 --- a/plugins/unityshell/src/unityshell.cpp +++ b/plugins/unityshell/src/unityshell.cpp @@ -760,9 +760,9 @@ void UnityScreen::paintDisplay() unsigned int oldGlAddGeometryIndex = uTrayWindow->gWindow->glAddGeometryGetCurrentIndex (); unsigned int oldGlDrawIndex = uTrayWindow->gWindow->glDrawGetCurrentIndex (); - attrib.opacity = OPAQUE; - attrib.brightness = BRIGHT; - attrib.saturation = COLOR; + attrib.opacity = COMPIZ_COMPOSITE_OPAQUE; + attrib.brightness = COMPIZ_COMPOSITE_BRIGHT; + attrib.saturation = COMPIZ_COMPOSITE_COLOR; oTransform.toScreenSpace (output, -DEFAULT_Z_CAMERA); diff --git a/plugins/unityshell/src/unityshell.h b/plugins/unityshell/src/unityshell.h index aa04b242b..e2b50badf 100644 --- a/plugins/unityshell/src/unityshell.h +++ b/plugins/unityshell/src/unityshell.h @@ -31,9 +31,22 @@ #include <scale/scale.h> #include <core/core.h> #include <core/pluginclasshandler.h> -#include <composite/composite.h> #include <opengl/opengl.h> +// These fixes some definitions from the composite header +#ifdef COLOR +#define COMPIZ_COMPOSITE_COLOR 0xffff +#undef COLOR +#endif +#ifdef OPAQUE +#define COMPIZ_COMPOSITE_OPAQUE 0xffff +#undef OPAQUE +#endif +#ifdef BRIGHT +#define COMPIZ_COMPOSITE_BRIGHT 0xffff +#undef BRIGHT +#endif + #include "unityshell_options.h" #include "Introspectable.h" |
