From 74d64ceea02bffad1caf3d1a727edbd38d968059 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Tue, 2 Jun 2015 13:58:30 -0400 Subject: [PATCH] mi: Remove questionable optimization from the rootless path This is effectively a revert of 7b506fdc840aebed6b5acb91437a2cb620b5bddc except the coding style reindent broke that. The code makes no sense in any case. drawable can never be null since it's the first member of WindowRec, and we're never called with a null window. Neither can it be an UNDRAWABLE_WINDOW since those are InputOnly windows; the rootless code does not set the root window to either UNDRAWABLE or InputOnly, so. Reviewed-by: Jasper St. Pierre Signed-off-by: Adam Jackson --- mi/miexpose.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/mi/miexpose.c b/mi/miexpose.c index 4124d67c6..f4c6e89a0 100644 --- a/mi/miexpose.c +++ b/mi/miexpose.c @@ -438,9 +438,6 @@ 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);