summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/neg.c
diff options
context:
space:
mode:
authorixce <ixce@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-11-17 00:36:25 +0000
committerixce <ixce@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-11-17 00:36:25 +0000
commit742b84efc50e1f21c916193feaa7c1daaeb02d52 (patch)
tree2c5f0a1dba25367bbb21ffff4fafd64b1bd67e94 /beryl-plugins/src/neg.c
parent8cecec47ac63cf3002990bb0a0d3181ed948055f (diff)
downloadmarex-dev-742b84efc50e1f21c916193feaa7c1daaeb02d52.tar.gz
marex-dev-742b84efc50e1f21c916193feaa7c1daaeb02d52.tar.bz2
beryl-plugins, beryl-vidcap: correctly unhandle actions when plugin get unloaded
git-svn-id: file:///beryl/trunk@1251 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/neg.c')
-rw-r--r--beryl-plugins/src/neg.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/beryl-plugins/src/neg.c b/beryl-plugins/src/neg.c
index 4a05564..149ca3f 100644
--- a/beryl-plugins/src/neg.c
+++ b/beryl-plugins/src/neg.c
@@ -651,10 +651,15 @@ static void
NEGFiniScreen (CompPlugin * p, CompScreen * s)
{
NEG_SCREEN (s);
+ NEG_DISPLAY (s->display);
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);
+ removeScreenAction (s,
+ &nd->opt[NEG_DISPLAY_OPTION_SCREEN_TOGGLE].value.action);
free (ns);
}