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>
(cherry picked from commit 7b506fdc84
)
This commit is contained in:
parent
1dbdcfbcbc
commit
86f37fa862
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user