summaryrefslogtreecommitdiff
path: root/composite/compwindow.c
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2004-08-12 07:57:03 +0000
committerEric Anholt <anholt@freebsd.org>2004-08-12 07:57:03 +0000
commit789cf3ed846045d91f950cb177ef6bae4c8966fc (patch)
tree1aa24f759451ad789301e0413b7def112f5eb7a7 /composite/compwindow.c
parent1a073786e0159a80ac3b8772a1d89b0618a8ff33 (diff)
Fix some issues reported by deronj:
- Hopefully fix a crash in compCheckRedirect on unrealizing windows. - Remove an extern that doesn't point at anything.
Diffstat (limited to 'composite/compwindow.c')
-rw-r--r--composite/compwindow.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/composite/compwindow.c b/composite/compwindow.c
index 5adc5efc8..29883666e 100644
--- a/composite/compwindow.c
+++ b/composite/compwindow.c
@@ -103,7 +103,10 @@ Bool
compCheckRedirect (WindowPtr pWin)
{
CompWindowPtr cw = GetCompWindow (pWin);
- Bool should = pWin->viewable && (cw != NULL);
+ Bool should;
+
+ should = pWin->realized && (pWin->drawable.class != InputOnly) &&
+ (cw != NULL);
if (should != pWin->redirectDraw)
{