summaryrefslogtreecommitdiff
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
parent5886524056f1b431ad453bd919aac0c7785b15e0 (diff)
perf: replace onPositionChanged -> onEntered
-rw-r--r--bar/Workspace.qml4
-rw-r--r--popups/launcher/components/App.qml2
-rw-r--r--popups/launcher/components/Clip.qml2
-rw-r--r--popups/launcher/components/Emoji.qml2
-rw-r--r--popups/launcher/components/Spell.qml2
-rw-r--r--services/Clip.qml3
-rw-r--r--services/Mpris.qml2
7 files changed, 9 insertions, 8 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;
diff --git a/popups/launcher/components/App.qml b/popups/launcher/components/App.qml
index e9dbcfd..4ac1fbe 100644
--- a/popups/launcher/components/App.qml
+++ b/popups/launcher/components/App.qml
@@ -178,7 +178,7 @@ IComponent {
MouseArea {
anchors.fill: parent
hoverEnabled: true
- onPositionChanged: {
+ onEntered: {
root.selectedIndex = index;
}
onPressed: {
diff --git a/popups/launcher/components/Clip.qml b/popups/launcher/components/Clip.qml
index 576fabe..a842a73 100644
--- a/popups/launcher/components/Clip.qml
+++ b/popups/launcher/components/Clip.qml
@@ -175,7 +175,7 @@ IComponent {
MouseArea {
anchors.fill: parent
hoverEnabled: true
- onPositionChanged: {
+ onEntered: {
root.selectedIndex = index;
}
onPressed: {
diff --git a/popups/launcher/components/Emoji.qml b/popups/launcher/components/Emoji.qml
index 97df7eb..175133f 100644
--- a/popups/launcher/components/Emoji.qml
+++ b/popups/launcher/components/Emoji.qml
@@ -177,7 +177,7 @@ IComponent {
MouseArea {
anchors.fill: parent
hoverEnabled: true
- onPositionChanged: root.selectedIndex = index
+ onEntered: root.selectedIndex = index
onPressed: root._exec()
}
}
diff --git a/popups/launcher/components/Spell.qml b/popups/launcher/components/Spell.qml
index 31184ef..37633bf 100644
--- a/popups/launcher/components/Spell.qml
+++ b/popups/launcher/components/Spell.qml
@@ -183,7 +183,7 @@ IComponent {
MouseArea {
anchors.fill: parent
hoverEnabled: true
- onPositionChanged: {
+ onEntered: {
root.selectedIndex = index;
}
onPressed: {
diff --git a/services/Clip.qml b/services/Clip.qml
index 7b3cb7b..2289dd2 100644
--- a/services/Clip.qml
+++ b/services/Clip.qml
@@ -7,13 +7,14 @@ import Quickshell.Wayland
import qs.components
import qs.utils
import qs.services
+import qs.config
import "../utils/string_utils.js" as StringUtils
Searchable {
id: root
key: "data"
- algorithm: Searchable.SearchAlgorithm.Include
+ algorithm: General.defaultSearchAlgorithm
property list<string> _clipHist: []
property list<string> _clipImg: []
diff --git a/services/Mpris.qml b/services/Mpris.qml
index c746f45..dc103f8 100644
--- a/services/Mpris.qml
+++ b/services/Mpris.qml
@@ -86,7 +86,7 @@ Singleton {
}
}
// not working https://github.com/quickshell-mirror/quickshell/issues/111
- // function onPositionChanged() {
+ // function onEntered() {
// }
}