Note that the lesstif HID in pcb doesn't bother with xor (except for the crosshair) or dirty regions at all. If anything happened, the whole screen is redrawn from scratch.