How to reproduce: 1) Start sigrok 2) Click on any trace marker to highlight a trace 3) Click on the trace line associated with the trace to hide the popup 4) Move the trace vertically, no matter the distance 5) Pan the trace horizontally Result: The tip of the border supposed to highlight the trace isn't redrawn. Note: It is unclear to me what the bug actually is: the missing repaint or the fact that the trace remains selected after step 4.
The cause of this is that the "labels" are drawn spilling out of the the Header and Ruler windows onto the Viewport without being clipped. One solution is to request that the damaged region of the Viewport be invalidated also. A possibly better solution would be to make the Ruler and Header be layered windows composited on top of Viewport so that they don't damage it.
No longer relevant as the trace labels have been moved so that they no longer damage the viewport.