summaryrefslogtreecommitdiff
path: root/winrules.c
diff options
context:
space:
mode:
Diffstat (limited to 'winrules.c')
-rw-r--r--winrules.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/winrules.c b/winrules.c
index 21ce98a..4348258 100644
--- a/winrules.c
+++ b/winrules.c
@@ -575,7 +575,8 @@ winrulesGetAllowedActionsForWindow (CompWindow *w,
WRAP (ws, w->screen, getAllowedActionsForWindow,
winrulesGetAllowedActionsForWindow);
- *clearActions |= ~ww->allowedActions;
+ if (ww)
+ *clearActions |= ~ww->allowedActions;
}
static void
@@ -763,6 +764,9 @@ winrulesFiniWindow (CompPlugin *p,
compRemoveTimeout (ww->handle);
free (ww);
+
+ WINRULES_SCREEN (w->screen);
+ w->base.privates[ws->windowPrivateIndex].ptr = NULL;
}
static CompBool