diff --git a/dots/.config/quickshell/ii/modules/common/widgets/DropdownButton.qml b/dots/.config/quickshell/ii/modules/common/widgets/DropdownButton.qml index 8443a1fa0..92aec88c6 100644 --- a/dots/.config/quickshell/ii/modules/common/widgets/DropdownButton.qml +++ b/dots/.config/quickshell/ii/modules/common/widgets/DropdownButton.qml @@ -131,6 +131,20 @@ Item { } } + Timer { + id: positionTracker + interval: 8 // is this smooth enough? + repeat: true + running: root.popupVisible + onTriggered: { + if (popupContent.visible) { + var pos = root.getGlobalPosition(); + popupContent.x = pos.x; + popupContent.y = pos.y + root.height + 4; + } + } + } + Rectangle { id: popupContent visible: root.popupVisible