summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/neg.c
diff options
context:
space:
mode:
authoronestone <onestone@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-11-10 16:57:18 +0000
committeronestone <onestone@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-11-10 16:57:18 +0000
commite8147df321f6749c50cd69d6b70d596b9ff14575 (patch)
tree4b929b01e2bf885613d6adbe8e3128eed574a802 /beryl-plugins/src/neg.c
parentfb76a1d1fd12d5dac5c1b62e0bfe126e0bd7ca07 (diff)
downloadmarex-dev-e8147df321f6749c50cd69d6b70d596b9ff14575.tar.gz
marex-dev-e8147df321f6749c50cd69d6b70d596b9ff14575.tar.bz2
beryl-plugins: neg: fixed rgba window issues
git-svn-id: file:///beryl/trunk@1125 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/neg.c')
-rw-r--r--beryl-plugins/src/neg.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/beryl-plugins/src/neg.c b/beryl-plugins/src/neg.c
index 587e0a6..4a05564 100644
--- a/beryl-plugins/src/neg.c
+++ b/beryl-plugins/src/neg.c
@@ -5,12 +5,12 @@
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
@@ -153,7 +153,7 @@ NEGDrawWindowTexture (CompWindow * w,
NEG_SCREEN (w->screen);
NEG_WINDOW (w);
- /* PAINT_WINDOW_DECORATION_MASK is set when the decorations are being painted
+ /* PAINT_WINDOW_DECORATION_MASK is set when the decorations are being painted
* I didn't want to paint them negative too
*/
if (nw->isNeg && !(mask & PAINT_WINDOW_DECORATION_MASK))
@@ -392,7 +392,7 @@ NEGDrawWindowTexture (CompWindow * w,
/* we are not opaque or fully bright */
- if (attrib->opacity < OPAQUE || attrib->brightness != BRIGHT)
+ if ((mask & PAINT_WINDOW_TRANSLUCENT_MASK) || attrib->brightness != BRIGHT)
{
GLfloat constant[4];
@@ -535,7 +535,7 @@ NEGGetDisplayOptions (CompDisplay * display, int *count)
if (display)
{
NEG_DISPLAY (display);
-
+
*count = NUM_OPTIONS (nd);
return nd->opt;
}
@@ -625,7 +625,7 @@ NEGInitScreen (CompPlugin * p, CompScreen * s)
return FALSE;
}
- /* initialize the screen variables
+ /* initialize the screen variables
* you know what happens if you don't
*/
ns->isNeg = FALSE;