Fix support for shaped windows.