diff options
author | Adam Jackson <ajax@redhat.com> | 2008-06-24 10:52:31 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-06-24 10:52:31 -0400 |
commit | 100afae578e59e31b65a6264c281ba7deea5ac39 (patch) | |
tree | 329f944746f4b514a78aa26ffebc4d570aa95803 /composite | |
parent | 4c4e06af7950df509fa02099788be66cf37a4d01 (diff) | |
download | xserver-100afae578e59e31b65a6264c281ba7deea5ac39.tar.gz |
Bug #15586: (Correctly) refuse to redirect the root window.
Diffstat (limited to 'composite')
-rw-r--r-- | composite/compalloc.c | 3 |
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 */ |