diff options
| -rw-r--r-- | modules/drawers/Drawers.qml | 4 | ||||
| -rw-r--r-- | modules/drawers/Interactions.qml | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/modules/drawers/Drawers.qml b/modules/drawers/Drawers.qml index 45b8f59..589ff34 100644 --- a/modules/drawers/Drawers.qml +++ b/modules/drawers/Drawers.qml @@ -31,8 +31,8 @@ Variants { mask: Region { x: BorderConfig.thickness y: BorderConfig.thickness - width: scope.modelData.width - BorderConfig.thickness * 2 - height: scope.modelData.height - BorderConfig.thickness * 2 + width: win.width - BorderConfig.thickness * 2 + height: win.height - BorderConfig.thickness * 2 intersection: Intersection.Xor regions: regions.instances 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); |