diff --git a/gui/main-kf5.qml b/gui/main-kf5.qml index 3502bdc..c1b9c89 100644 --- a/gui/main-kf5.qml +++ b/gui/main-kf5.qml @@ -1385,21 +1385,13 @@ ApplicationWindow { } } - // Sloppy focus + // Click-to-focus: update focused pane index on click MouseArea { anchors.fill: parent - hoverEnabled: true - acceptedButtons: Qt.NoButton + acceptedButtons: Qt.LeftButton propagateComposedEvents: true - onPositionChanged: sloppyTimer.restart() - onExited: sloppyTimer.stop() - } - Timer { - id: sloppyTimer - interval: 100 - onTriggered: { - paneRoot.focus = true - // Update focused index + onPressed: { + mouse.accepted = false for (var i = 0; i < mainContent.panes.length; i++) { if (mainContent.panes[i] === paneRoot) { mainContent.focusedPaneIndex = i