diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-08-29 16:14:11 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-08-29 16:14:11 +0800 |
| commit | f1ac2542a34455aaaacfb5ab8c9c42d949515125 (patch) | |
| tree | 82116e818881a85187a9bde15eea0569adfa3779 /bar | |
| parent | 5886524056f1b431ad453bd919aac0c7785b15e0 (diff) | |
perf: replace onPositionChanged -> onEntered
Diffstat (limited to 'bar')
| -rw-r--r-- | bar/Workspace.qml | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
