bool GraphicsExposePredicate (IntPtr display, ref XEvent xevent, IntPtr arg) { return (xevent.type == XEventName.GraphicsExpose || xevent.type == XEventName.NoExpose) && arg == xevent.GraphicsExposeEvent.drawable; }