pothos-widgets: moved window function update into 1-time call