summaryrefslogtreecommitdiff
path: root/bar
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2026-08-29 16:14:11 +0800
committerlittleblack111 <littleblack11111@gmail.com>2026-08-29 16:14:11 +0800
commitf1ac2542a34455aaaacfb5ab8c9c42d949515125 (patch)
tree82116e818881a85187a9bde15eea0569adfa3779 /bar
parent5886524056f1b431ad453bd919aac0c7785b15e0 (diff)
perf: replace onPositionChanged -> onEntered
Diffstat (limited to 'bar')
-rw-r--r--bar/Workspace.qml4
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;