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

@ -2,6 +2,7 @@ import QtQuick
import QtQuick.Layouts
import Quickshell
import Quickshell.Services.SystemTray
import "." as M
RowLayout {
@ -34,6 +35,7 @@ RowLayout {
if (hovered && tip) {
M.FlyoutState.text = tip;
M.FlyoutState.itemX = iconItem.mapToGlobal(iconItem.width / 2, 0).x;
M.FlyoutState.screen = QsWindow.window?.screen ?? null;
M.FlyoutState.visible = true;
} else if (!hovered) {
M.FlyoutState.visible = false;