fixed NASTY memory leak caused by X11 building up an essentially infinite queue of events on every window paint (once per 1/10th of a second)