Merge pull request #1764 from Armada651/safe-exclusive D3D: Only try to apply exclusive mode when the renderer is in focus.