summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/neg.c
diff options
context:
space:
mode:
authorguillaume <guillaume@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-01 01:39:13 +0000
committerguillaume <guillaume@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-01 01:39:13 +0000
commit74e029f7612c06c6222f5046ff315d186e27a4aa (patch)
tree862923578781f17773d561fe7aa40a49488c768b /beryl-plugins/src/neg.c
parentee494a3e41757087089f9133d4faa8c65ece474e (diff)
downloadmarex-dev-74e029f7612c06c6222f5046ff315d186e27a4aa.tar.gz
marex-dev-74e029f7612c06c6222f5046ff315d186e27a4aa.tar.bz2
neg plugin: remove useless function
git-svn-id: file:///beryl/trunk@2197 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/neg.c')
-rw-r--r--beryl-plugins/src/neg.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/beryl-plugins/src/neg.c b/beryl-plugins/src/neg.c
index ecc775a..bc31c08 100644
--- a/beryl-plugins/src/neg.c
+++ b/beryl-plugins/src/neg.c
@@ -75,7 +75,6 @@ typedef struct _NEGSCreen
CompOption opt[NEG_SCREEN_OPTION_NUM]; /* array of screen options */
DrawWindowTextureProc drawWindowTexture; /* function pointer */
DamageWindowRectProc damageWindowRect; /* function pointer */
- PaintWindowProc paintWindow; /* function pointer */
Bool isNeg; /* negative screen flag */
unsigned int excludeWMask;
} NEGScreen;
@@ -506,22 +505,6 @@ static Bool NEGDamageWindowRect(CompWindow * w, Bool initial, BoxPtr rect)
return status;
}
-static Bool
-NEGPaintWindow(CompWindow * w, const WindowPaintAttrib * attrib,
- Region region, unsigned int mask)
-{
- int status;
-
- NEG_SCREEN(w->screen);
-
- /* doing nothing */
-
- UNWRAP(ns, w->screen, paintWindow);
- status = (*w->screen->paintWindow) (w, attrib, region, mask);
- WRAP(ns, w->screen, paintWindow, NEGPaintWindow);
-
- return status;
-}
static void NEGDisplayInitOptions(NEGDisplay * nd)
{
CompOption *o;
@@ -645,7 +628,7 @@ static void NEGFiniDisplay(CompPlugin * p, CompDisplay * d)
static void NEGScreenInitOptions(NEGScreen * ns)
{
CompOption *o;
- int i;
+ unsigned int i;
o = &ns->opt[NEG_SCREEN_OPTION_EXCLUDE_WINDOW_TYPE];
o->advanced = False;
@@ -769,7 +752,6 @@ static Bool NEGInitScreen(CompPlugin * p, CompScreen * s)
/* wrap overloaded functions */
WRAP(ns, s, drawWindowTexture, NEGDrawWindowTexture);
WRAP(ns, s, damageWindowRect, NEGDamageWindowRect);
- WRAP(ns, s, paintWindow, NEGPaintWindow);
s->privates[nd->screenPrivateIndex].ptr = ns;
@@ -784,7 +766,6 @@ static void NEGFiniScreen(CompPlugin * p, CompScreen * s)
freeWindowPrivateIndex(s, ns->windowPrivateIndex);
UNWRAP(ns, s, drawWindowTexture);
UNWRAP(ns, s, damageWindowRect);
- UNWRAP(ns, s, paintWindow);
removeScreenAction(s,
&nd->opt[NEG_DISPLAY_OPTION_WINDOW_TOGGLE].
value.action);