With DEBUG_PAINT, windows that were being painted were logged, but
nothing was logged for skipped windows. With this patch, the reason
a window is skipped is logged ("not damaged", "invisible") with the
window id.Signed-off-by: Forest Bond <[email protected]> --- xcompmgr.c | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/xcompmgr.c b/xcompmgr.c index dc5b225..1f6b450 100644 --- a/xcompmgr.c +++ b/xcompmgr.c @@ -945,11 +945,21 @@ paint_all (Display *dpy, XserverRegion region) #endif /* never painted, ignore it */ if (!w->damaged) + { +#if DEBUG_REPAINT + printf (" [not damaged: 0x%x]", w->id); +#endif continue; + } /* if invisible, ignore it */ if (w->a.x + w->a.width < 1 || w->a.y + w->a.height < 1 || w->a.x >= root_width || w->a.y >= root_height) + { +#if DEBUG_REPAINT + printf (" [invisible: 0x%x]", w->id); +#endif continue; + } if (!w->picture) { XRenderPictureAttributes pa; @@ -970,7 +980,7 @@ paint_all (Display *dpy, XserverRegion region) &pa); } #if DEBUG_REPAINT - printf (" 0x%x", w->id); + printf (" [painting 0x%x]", w->id); #endif if (clipChanged) { -- 1.7.0.4
signature.asc
Description: Digital signature
_______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
