fix rendering artifacts introduced by calling winId

Authored by cullmann on Sep 29 2019, 6:10 PM.