Fixing Alt-Enter handling, submitted by Nader Golbaz
authorSam Lantinga <slouken@libsdl.org>
Sun, 23 Mar 2014 22:53:50 -0700
changeset 8672763f551235af
parent 8671 5e7004e87dec
child 8673 50135c28f7cf
Fixing Alt-Enter handling, submitted by Nader Golbaz

I encountered a little issue: DXGI monitors application's message queue and this behavior interferes with SDL if the application already handles Alt-Enter sequence. I think it is necessary to disable this behavior.
http://msdn.microsoft.com/en-us/library/windows/desktop/bb174540%28v=vs.85%29.aspx
src/render/direct3d11/SDL_render_d3d11.c
     1.1 --- a/src/render/direct3d11/SDL_render_d3d11.c	Sun Mar 23 22:07:01 2014 -0400
     1.2 +++ b/src/render/direct3d11/SDL_render_d3d11.c	Sun Mar 23 22:53:50 2014 -0700
     1.3 @@ -1447,6 +1447,8 @@
     1.4              WIN_SetErrorFromHRESULT(__FUNCTION__ ", IDXGIFactory2::CreateSwapChainForHwnd", result);
     1.5              goto done;
     1.6          }
     1.7 +
     1.8 +        IDXGIFactory_MakeWindowAssociation(data->dxgiFactory, windowinfo.info.win.window, DXGI_MWA_NO_WINDOW_CHANGES);
     1.9  #else
    1.10          SDL_SetError(__FUNCTION__", Unable to find something to attach a swap chain to");
    1.11          goto done;