[PATCH] wined3d: Spawn a separate thread to adjust the window state of windows belonging to other threads.