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