From 45e6cffa1e9d6681c5b86b9e0eaf86449bb86a72 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 24 May 2025 17:42:17 +0800 Subject: drawers: fix interactions Fix offset caused by bar --- modules/drawers/Interactions.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/drawers/Interactions.qml') diff --git a/modules/drawers/Interactions.qml b/modules/drawers/Interactions.qml index 0dfda50..b155449 100644 --- a/modules/drawers/Interactions.qml +++ b/modules/drawers/Interactions.qml @@ -36,10 +36,12 @@ MouseArea { target: Hyprland function onCursorPosChanged(): void { - const { + let { x, y } = Hyprland.cursorPos; + x -= QsWindow.window.margins.left; + y -= QsWindow.window.margins.top; // Show osd on hover const showOsd = root.inRightPanel(panels.osd, x, y); -- cgit v1.2.3-freya