Statusbar: fix some visual glitches

Fixes #2870