fix flyouts on multiple monitors, update mds

This commit is contained in:
Damocles 2026-04-12 15:30:35 +02:00
parent ab2eb2578e
commit 75a94628ad
7 changed files with 36 additions and 11 deletions

View file

@ -1,4 +1,5 @@
import QtQuick
import Quickshell
import "." as M
Text {
@ -17,6 +18,7 @@ Text {
if (hovered && root.tooltip !== "") {
M.FlyoutState.text = root.tooltip;
M.FlyoutState.itemX = root.mapToGlobal(root.width / 2, 0).x;
M.FlyoutState.screen = QsWindow.window?.screen ?? null;
M.FlyoutState.visible = true;
} else if (!hovered && root.tooltip !== "") {
M.FlyoutState.visible = false;