Check for GraphicsExpose too in expose_serial_predicate

GraphicsExpose cause invalidation too, so we need to look for such
events in addition to normal Expose events.
This commit is contained in:
Alexander Larsson 2009-08-13 13:07:13 +02:00
parent f019047402
commit a3ee8271a9

View File

@ -108,7 +108,7 @@ expose_serial_predicate (Display *xdisplay,
{ {
gulong *serial = (gulong *)arg; gulong *serial = (gulong *)arg;
if (xev->xany.type == Expose) if (xev->xany.type == Expose || xev->xany.type == GraphicsExpose)
*serial = MIN (*serial, xev->xany.serial); *serial = MIN (*serial, xev->xany.serial);
return False; return False;