Skip to content

Commit

Permalink
Fix tab dragging between windows
Browse files Browse the repository at this point in the history
  • Loading branch information
lhecker committed Nov 22, 2024
1 parent 06066d5 commit 1aafccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cascadia/WindowsTerminal/AppHost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,7 @@ void AppHost::_handleMoveContent(const winrt::Windows::Foundation::IInspectable&
void AppHost::_handleReceiveContent(const winrt::Windows::Foundation::IInspectable& /* sender */,
winrt::TerminalApp::RequestReceiveContentArgs args)
{
if (const auto target = _windowManager->GetWindowById(args.TargetWindow()))
if (const auto target = _windowManager->GetWindowById(args.SourceWindow()))
{
target->_windowLogic.SendContentToOther(winrt::TerminalApp::RequestReceiveContentArgs{ args.SourceWindow(), args.TargetWindow(), args.TabIndex() });
}
Expand Down

0 comments on commit 1aafccb

Please sign in to comment.