summaryrefslogtreecommitdiff
path: root/modules/drawers/Interactions.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-24 17:42:17 +0800
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-24 17:42:17 +0800
commit45e6cffa1e9d6681c5b86b9e0eaf86449bb86a72 (patch)
treee23b7b3071f979076ed363bb1ced367f021a98a6 /modules/drawers/Interactions.qml
parentinternal: use implicit size for wrappers (diff)
downloadcaelestia-shell-45e6cffa1e9d6681c5b86b9e0eaf86449bb86a72.tar.gz
caelestia-shell-45e6cffa1e9d6681c5b86b9e0eaf86449bb86a72.tar.bz2
caelestia-shell-45e6cffa1e9d6681c5b86b9e0eaf86449bb86a72.zip
drawers: fix interactions
Fix offset caused by bar
Diffstat (limited to 'modules/drawers/Interactions.qml')
-rw-r--r--modules/drawers/Interactions.qml4
1 files changed, 3 insertions, 1 deletions
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);