widget: Process widget callbacks before widget display.

Previously, widget callbacks were not always called, even when displayed.

Fixes ticket:3844, "Drag select freezes build progress bar".