algo/scroll: make window click respect focus_fit_method

This commit is contained in:
Frederick Lee 2026-03-19 18:04:45 -04:00
parent b940b0d2c1
commit 84ba4b1a27

View file

@ -579,7 +579,7 @@ void CScrollingAlgorithm::focusOnInput(SP<ITarget> target, eInputMode input) {
return;
static const auto PFITMETHOD = CConfigValue<Hyprlang::INT>("scrolling:focus_fit_method");
if (*PFITMETHOD == 1 || input == INPUT_MODE_CLICK)
if (*PFITMETHOD == 1)
m_scrollingData->fitCol(TARGETDATA->column.lock());
else
m_scrollingData->centerCol(TARGETDATA->column.lock());