[Bug 303754] LSB: XEventsQueued() seems to flush the output buffer even if it shouldn't