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>
This commit is contained in:
parent
4d3789c9b3
commit
7b506fdc84
|
@ -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