On 12 November 2014 22:15, Stefan Dösinger stefan@codeweavers.com wrote:
+void wined3d_swapchain_activate(struct wined3d_swapchain *swapchain, BOOL activate) +{
- if (!activate && !(swapchain->device->create_parms.flags & WINED3DCREATE_NOWINDOWCHANGES))
ShowWindow(swapchain->device_window, SW_MINIMIZE);
+}
This patch is mostly just blocked by the tests failing, but I'd also have to wonder if the window proc should be installed in the first place if the device is created with NOWINDOWCHANGES.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Am 2014-11-13 11:44, schrieb Henri Verbeet:
This patch is mostly just blocked by the tests failing, but I'd also have to wonder if the window proc should be installed in the first place if the device is created with NOWINDOWCHANGES.
The tests say yes - patch 3 adds NOWINDOWCHANGES to test_wndproc, and the window proc is still modififed.
Even with NOWINDOWCHANGES d3d9 restores the screen resolution on focus loss, and it knows about focus loss somehow (TestCooperativeLevel returns the expected values), and replacing the wndproc is kinda necessary for both of these.