fix inability to click titlebar buttons on windows