I can reproduce it by dragging some other X11 app in front of the window. You may need to turn off the compositor to get proper exposures.
It's better now with your fix, though I'm still getting unexposed 1-pixel horizontal lines, there's probably a rounding error with the expose rectangle coordinates.