From 1aa4cbadb749b3f46f5f41fb23cd25f028736128 Mon Sep 17 00:00:00 2001 From: erstarr <253168930+erstarr@users.noreply.github.com> Date: Fri, 10 Apr 2026 16:18:29 +0200 Subject: [PATCH] clang-format --- .../algorithm/tiled/scrolling/ScrollingAlgorithm.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/layout/algorithm/tiled/scrolling/ScrollingAlgorithm.cpp b/src/layout/algorithm/tiled/scrolling/ScrollingAlgorithm.cpp index 59fb0f80d..af2976c8e 100644 --- a/src/layout/algorithm/tiled/scrolling/ScrollingAlgorithm.cpp +++ b/src/layout/algorithm/tiled/scrolling/ScrollingAlgorithm.cpp @@ -538,9 +538,11 @@ CScrollingAlgorithm::CScrollingAlgorithm() { // if follow_focus != 0, focuswindow always moves scrolling view // if follow_focus != 0, change in a group's current window state always moves scrolling view // if follow_focus != 0, moving a window into group via the corresponding dispatches `moveintogroup`, `movewindoworgroup` always moves scrolling view - if (*PFOLLOW_FOCUS && (reason == Desktop::FOCUS_REASON_DISPATCH_FOCUSWINDOW || reason == Desktop::FOCUS_REASON_GROUP_CURRENT_WINDOW_CHANGE || reason == Desktop::FOCUS_REASON_DISPATCH_MOVEINTOGROUP)) - focusOnInput(TARGET,INPUT_MODE_HARD); - else + if (*PFOLLOW_FOCUS && + (reason == Desktop::FOCUS_REASON_DISPATCH_FOCUSWINDOW || reason == Desktop::FOCUS_REASON_GROUP_CURRENT_WINDOW_CHANGE || + reason == Desktop::FOCUS_REASON_DISPATCH_MOVEINTOGROUP)) + focusOnInput(TARGET, INPUT_MODE_HARD); + else focusOnInput(TARGET, reason == Desktop::FOCUS_REASON_CLICK ? INPUT_MODE_CLICK : (Desktop::isHardInputFocusReason(reason) ? INPUT_MODE_HARD : INPUT_MODE_SOFT)); });