fixed bug where dragging over the title failed to trigger repaint