Skip to content

Commit

Permalink
Maximus5gh-1585: Don't reset search mode by clicking on scrollbar.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximus5 committed Jun 12, 2018
1 parent 29ef4b3 commit 4fc4d82
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/ConEmu/ConEmu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11965,7 +11965,7 @@ LRESULT CConEmuMain::OnSetCursor(WPARAM wParam/*=-1*/, LPARAM lParam/*=-1*/)
}
else if (pRCon->isSelectionPresent())
{
if (gpSet->isCTSIBeam)
if (gpSet->isCTSIBeam && (pVCon && !pVCon->CheckMouseOverScroll()))
hCur = mh_CursorIBeam; // LoadCursor(NULL, IDC_IBEAM);
}
else if ((etr = pRCon->GetLastTextRangeType()) != etr_None)
Expand Down Expand Up @@ -13449,11 +13449,16 @@ LRESULT CConEmuMain::OnActivateByMouse(HWND hWnd, UINT messg, WPARAM wParam, LPA
{
RECT rcWork = WorkspaceRect();
POINT ptCur = {}; GetCursorPos(&ptCur);
MapWindowPoints(NULL, ghWnd, &ptCur, 1);
MapWindowPoints(ghWnd, NULL, (LPPOINT)&rcWork, 2);
if (PtInRect(&rcWork, ptCur))
{
bSkipActivation = true;
mp_TabBar->ActivateSearchPane(false);
CVConGuard VCon;
if (CVConGroup::GetVConFromPoint(ptCur, &VCon)
&& !VCon->CheckMouseOverScroll())
{
mp_TabBar->ActivateSearchPane(false);
}
}
}

Expand Down

0 comments on commit 4fc4d82

Please sign in to comment.