drawers: fix interactions for multimonitor

Or monitors that arent positioned at 0,0 *cough* outfoxxed
This commit is contained in:
2 * r + 2 * t 2025-05-27 09:42:06 +08:00
parent 1797954440
commit c2ee9a52bd

View file

@ -40,8 +40,8 @@ MouseArea {
x,
y
} = Hyprland.cursorPos;
x -= QsWindow.window.margins.left;
y -= QsWindow.window.margins.top;
x -= QsWindow.window.margins.left + Hyprland.focusedMonitor.x;
y -= QsWindow.window.margins.top + Hyprland.focusedMonitor.y;
// Show osd on hover
const showOsd = root.inRightPanel(panels.osd, x, y);