Skip to content

Commit

Permalink
libobs-d3d11: Do not allow Alt+Enter interception
Browse files Browse the repository at this point in the history
Prevents Alt-Enter from attempting to automatically fullscreen an OBS
graphics display.

Closes obsproject#1248
  • Loading branch information
SuslikV authored and jp9000 committed Apr 21, 2018
1 parent 2ebcd49 commit dbfcbac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libobs-d3d11/d3d11-subsystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ gs_swap_chain::gs_swap_chain(gs_device *device, const gs_init_data *data)
if (FAILED(hr))
throw HRError("Failed to create swap chain", hr);

/* Ignore Alt+Enter */
device->factory->MakeWindowAssociation(hwnd, DXGI_MWA_NO_ALT_ENTER);

Init();
}

Expand Down

0 comments on commit dbfcbac

Please sign in to comment.