summaryrefslogtreecommitdiff
path: root/mi
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2010-04-21 08:38:53 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2010-05-02 15:27:29 -0700
commit7b506fdc840aebed6b5acb91437a2cb620b5bddc (patch)
treeeddc985d46dac19d9d616574374a589986884c87 /mi
parent4d3789c9b3fbe6aad32fcacd964353b612640f27 (diff)
rootless: Add some sanity checking to miPaintWindow
This avoids painting the root window when it isn't actually drawable. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'mi')
-rw-r--r--mi/miexpose.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mi/miexpose.c b/mi/miexpose.c
index 1c9c3a436..f52b49211 100644
--- a/mi/miexpose.c
+++ b/mi/miexpose.c
@@ -552,6 +552,9 @@ miPaintWindow(WindowPtr pWin, RegionPtr prgn, int what)
DrawablePtr drawable = &pWin->drawable;
#ifdef ROOTLESS
+ if(!drawable || drawable->type == UNDRAWABLE_WINDOW)
+ return;
+
if(IsFramedWindow(pWin)) {
RootlessStartDrawing(pWin);
RootlessDamageRegion(pWin, prgn);