summaryrefslogtreecommitdiff
path: root/composite
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-06-24 10:52:31 -0400
committerAdam Jackson <ajax@redhat.com>2008-06-24 10:52:31 -0400
commit100afae578e59e31b65a6264c281ba7deea5ac39 (patch)
tree329f944746f4b514a78aa26ffebc4d570aa95803 /composite
parent4c4e06af7950df509fa02099788be66cf37a4d01 (diff)
Bug #15586: (Correctly) refuse to redirect the root window.
Diffstat (limited to 'composite')
-rw-r--r--composite/compalloc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/composite/compalloc.c b/composite/compalloc.c
index 0372b9bfa..19c7db0b3 100644
--- a/composite/compalloc.c
+++ b/composite/compalloc.c
@@ -82,6 +82,9 @@ compRedirectWindow (ClientPtr pClient, WindowPtr pWin, int update)
return Success;
}
+ if (!pWin->parent)
+ return BadMatch;
+
/*
* Only one Manual update is allowed
*/