Ignore some X errors that can occur in normal use

This commit is contained in:
Dana Jansens 2008-02-20 00:44:26 -05:00
parent 9339584771
commit f717d14a38
1 changed files with 5 additions and 2 deletions

View File

@ -990,8 +990,10 @@ paint_all (Display *dpy, XserverRegion region)
Drawable draw = w->id;
#if HAS_NAME_WINDOW_PIXMAP
if (hasNamePixmap && !w->pixmap)
w->pixmap = XCompositeNameWindowPixmap (dpy, w->id);
if (hasNamePixmap && !w->pixmap) {
set_ignore (dpy, NextRequest (dpy));
w->pixmap = XCompositeNameWindowPixmap (dpy, w->id);
}
if (w->pixmap)
draw = w->pixmap;
#endif
@ -1542,6 +1544,7 @@ add_win (Display *dpy, Window id, Window prev)
else
{
new->damage_sequence = NextRequest (dpy);
set_ignore (dpy, NextRequest (dpy));
new->damage = XDamageCreate (dpy, id, XDamageReportNonEmpty);
}
new->alphaPict = None;