glw: Make sinewave() function always refresh layout

Fixes #2321