From f1ac2542a34455aaaacfb5ab8c9c42d949515125 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sat, 29 Aug 2026 16:14:11 +0800 Subject: perf: replace onPositionChanged -> onEntered --- bar/Workspace.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bar') diff --git a/bar/Workspace.qml b/bar/Workspace.qml index 3f0709a..52f2d1b 100644 --- a/bar/Workspace.qml +++ b/bar/Workspace.qml @@ -146,7 +146,7 @@ Item { moveActive(); } // https://github.com/quickshell-mirror/quickshell/issues/118 - // onPositionChanged: { + // onEntered: { // moveActive(); // } onExited: { @@ -214,7 +214,7 @@ Item { // sync w the inner MouseArea // https://github.com/quickshell-mirror/quickshell/issues/118 // but onEnter won't update the mouseX - onPositionChanged: { + onEntered: { const abovedItemIndex = Math.round((mouseX - layout.x) / (Bar.wsIconSize + Bar.wsSpacing)) - 1; // TODO: workspaceActiveIconSize might be before activeRect.x = mouseX - activeRect.width / 2; root.activeOccupied = root.getWorkspaceStats(abovedItemIndex).isOccupied || false; -- cgit v1.2.3