mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 553603: Do not let DXGI handle window changes for us. r=jrmuizel
This commit is contained in:
parent
7a13ee1335
commit
63c94e8d32
@ -2139,6 +2139,13 @@ cairo_d2d_surface_create_for_hwnd(HWND wnd)
|
||||
*/
|
||||
hr = dxgiFactory->CreateSwapChain(dxgiDevice, &swapDesc, &newSurf->dxgiChain);
|
||||
|
||||
/**
|
||||
* We do not want DXGI to intercept alt-enter events and make the window go
|
||||
* fullscreen! This shouldn't be in the cairo backend but controlled through
|
||||
* the device. See comments on mozilla bug 553603.
|
||||
*/
|
||||
dxgiFactory->MakeWindowAssociation(wnd, DXGI_MWA_NO_WINDOW_CHANGES);
|
||||
|
||||
if (FAILED(hr)) {
|
||||
goto FAIL_HWND;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user