drawers: fix interactions for multimonitor
Or monitors that arent positioned at 0,0 *cough* outfoxxed
This commit is contained in:
parent
1797954440
commit
c2ee9a52bd
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue