diff options
author | Keith Packard <keithp@keithp.com> | 2004-08-15 19:05:01 +0000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2004-08-15 19:05:01 +0000 |
commit | a68f350195c1c54034f98e2b78c2c3da70044884 (patch) | |
tree | 4f8f33ab22dfcdd1708ea8fbf5d6ac20ab4db016 /composite/compwindow.c | |
parent | 5db70ae2575e3e8669d7a66e2218ba28e8bdfa68 (diff) |
Remove debugging code which did a full tree walk on every window operation
Eliminate needless (and, it turns out, dangerous) call to ChangeGC on
DestroyGCPrivate.
in cwSetWindowPixmap, check if the pixmap is the screen pixmap and disable
the wrapper by setting the private to NULL.
Diffstat (limited to 'composite/compwindow.c')
-rw-r--r-- | composite/compwindow.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/composite/compwindow.c b/composite/compwindow.c index f630008a6..f8945bdc4 100644 --- a/composite/compwindow.c +++ b/composite/compwindow.c @@ -27,7 +27,7 @@ #endif #include "compint.h" -#ifndef NDEBUG +#ifdef COMPOSITE_DEBUG static int compCheckWindow (WindowPtr pWin, pointer data) { @@ -151,8 +151,10 @@ compPositionWindow (WindowPtr pWin, int x, int y) * compCheckRedirect (pWin); */ +#ifdef COMPOSITE_DEBUG if (pWin->redirectDraw != (pWin->viewable && (GetCompWindow(pWin) != NULL))) abort (); +#endif if (pWin->redirectDraw) { PixmapPtr pPixmap = (*pScreen->GetWindowPixmap) (pWin); |