<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [版本 10.0.18362.175]
Windows Terminal version (if applicable): Preview installed from Windows Store

Any other software?

- Ubuntu wsl installed from Windows Store
- emacs in wsl"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [版本 10.0.18362.175]
Windows Terminal version (if applicable): Preview installed from Windows Store

Any other software?

- Ubuntu wsl installed from Windows Store
- emacs in wsl
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>

<p dir="auto">Add wsl to Windows Terminal profile, can't type <code class="notranslate">Alt-&lt;</code> <code class="notranslate">Alt-&gt;</code> <code class="notranslate">Alt-:</code> <code class="notranslate">Alt-?</code>，these are usual commands in emacs.</p>
<p dir="auto">And these keys works all right in Ubuntu wsl</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto"><code class="notranslate">Alt-Shift-,</code> emit <code class="notranslate">Alt-&lt;</code><br>
<code class="notranslate">Alt-Shift-.</code> emit <code class="notranslate">Alt-&gt;</code></p>

<h1 dir="auto">Actual behavior</h1>
<p dir="auto"><code class="notranslate">Alt-Shift-,</code> emit <code class="notranslate">Alt-,</code><br>
<code class="notranslate">Alt-Shift-.</code> emit <code class="notranslate">Alt-.</code></p>
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18362.0
Windows Terminal version (if applicable): master

Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.0
Windows Terminal version (if applicable): master

Any other software?
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>Minimize the height of Terminal. Doesn't even have to be fully minimized.</li>
<li>Create a new tab</li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7334282/65287337-baf66d00-daf7-11e9-92fe-732823faf487.png"><img src="https://user-images.githubusercontent.com/7334282/65287337-baf66d00-daf7-11e9-92fe-732823faf487.png" alt="WindowsTerminal_cY56ao4860" style="max-width: 100%;"></a></p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">A new tab is created</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Terminal crashes</p>

<p dir="auto"><strong>Details</strong><br>
Terminal crashes with the exception <code class="notranslate">Unhandled exception at 0x00007FF8AB012830 (Windows.UI.Xaml.dll) in WindowsTerminal.exe: 0xC000027B: An application-internal exception has occurred (parameters: 0x0000027E170823C0, 0x0000000000000002).</code></p>
<p dir="auto">This should be the actual error.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="E:\Code\terminal\src\renderer\dx\DxRenderer.cpp(247)\TerminalControl.dll!00007FF835C818E6: (caller: 00007FF835C7CBCB) ReturnHr(1) tid(2944) 887A0001 The application made a call that is invalid. Either the parameters of the call or the state of some object was incorrect.
Enable the D3D debug layer in order to see details via debug messages.
    [Microsoft::Console::Render::DxEngine::_CreateDeviceResources(_dxgiFactory2-&gt;CreateSwapChainForComposition(_d3dDevice.Get(), &amp;SwapChainDesc, nullptr, &amp;_dxgiSwapChain))]"><pre class="notranslate"><code class="notranslate">E:\Code\terminal\src\renderer\dx\DxRenderer.cpp(247)\TerminalControl.dll!00007FF835C818E6: (caller: 00007FF835C7CBCB) ReturnHr(1) tid(2944) 887A0001 The application made a call that is invalid. Either the parameters of the call or the state of some object was incorrect.
Enable the D3D debug layer in order to see details via debug messages.
    [Microsoft::Console::Render::DxEngine::_CreateDeviceResources(_dxgiFactory2-&gt;CreateSwapChainForComposition(_d3dDevice.Get(), &amp;SwapChainDesc, nullptr, &amp;_dxgiSwapChain))]
</code></pre></div>
<div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// src\renderer\dx\DxRenderer.cpp(L233-249)
case SwapChainMode::ForComposition:
{
	SwapChainDesc.Width = _displaySizePixels.cx;
	SwapChainDesc.Height = _displaySizePixels.cy;
	
	// omitted

--&gt;	RETURN_IF_FAILED(_dxgiFactory2-&gt;CreateSwapChainForComposition(_d3dDevice.Get(),
																  &amp;SwapChainDesc,
																  nullptr,
																  &amp;_dxgiSwapChain));
	break;
}"><pre class="notranslate"><span class="pl-c"><span class="pl-c">//</span> src\renderer\dx\DxRenderer.cpp(L233-249)</span>
<span class="pl-k">case</span> SwapChainMode::ForComposition:
{
	SwapChainDesc.<span class="pl-smi">Width</span> = _displaySizePixels.<span class="pl-smi">cx</span>;
	SwapChainDesc.<span class="pl-smi">Height</span> = _displaySizePixels.<span class="pl-smi">cy</span>;
	
	<span class="pl-c"><span class="pl-c">//</span> omitted</span>

--&gt;	<span class="pl-c1">RETURN_IF_FAILED</span>(_dxgiFactory2-&gt;<span class="pl-c1">CreateSwapChainForComposition</span>(_d3dDevice.<span class="pl-c1">Get</span>(),
																  &amp;SwapChainDesc,
																  <span class="pl-c1">nullptr</span>,
																  &amp;_dxgiSwapChain));
	<span class="pl-k">break</span>;
}</pre></div>
<p dir="auto"><code class="notranslate">Height</code> is 0 which I assume is an invalid parameter.</p>