summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2026-08-23 12:19:59 +0800
committerlittleblack111 <littleblack11111@gmail.com>2026-08-23 12:19:59 +0800
commit074d815725dd80a5407cc5772a7a8c23699cf4b6 (patch)
treea46d8529af2856c54dae0034dddba26548ad856b
parentdcbb725b39e7ff7cda2ad0a85ad2352acd708bf7 (diff)
cleanup: Launcher
-rw-r--r--bar/Mpris.qml1
-rw-r--r--popups/launcher/Launcher.qml8
2 files changed, 5 insertions, 4 deletions
diff --git a/bar/Mpris.qml b/bar/Mpris.qml
index 46c24b2..75f7e2d 100644
--- a/bar/Mpris.qml
+++ b/bar/Mpris.qml
@@ -64,6 +64,7 @@ Item {
// }
// }
+ // cannot remove and replace with modern non stealing handlers cuz otherwise slider will steal from us
MouseArea {
id: mouseArea
anchors.fill: parent
diff --git a/popups/launcher/Launcher.qml b/popups/launcher/Launcher.qml
index fdc14c6..5db25cc 100644
--- a/popups/launcher/Launcher.qml
+++ b/popups/launcher/Launcher.qml
@@ -22,18 +22,21 @@ ILauncher {
IRect {
id: container
- property var selection: launcher.state?.selected || null
+ property var selection: launcher.state?.selected
property var mappedSelection: selection?.mapToItem(null, 0, 0)
+
onMappedSelectionChanged: {
// launcher.state?.selected may be slow.. smh qt
// my guess is mapToItem is called when its not finished doing whatever it needs to do,
// so it doesnt get the right vars, but it doesn't update after since it already triggered it
selectionSync.running = true;
}
+
// for some reason selection changing doesnt call onMappedSelectionChanged, so we manually trigger it
onSelectionChanged: {
selectionSync.running = true;
}
+
Timer {
id: selectionSync
// TODO: evaluate weather i just leave it running repeat, might be costy though
@@ -113,9 +116,6 @@ ILauncher {
Behavior on topMargin {
ISpringAnimation {}
- // NumberAnimation {
- // duration: General.animationDuration / 2
- // }
}
}