drawers: fix interactions
Fix offset caused by bar
This commit is contained in:
parent
6d40032fe5
commit
45e6cffa1e
2 changed files with 5 additions and 3 deletions
|
|
@ -31,8 +31,8 @@ Variants {
|
||||||
mask: Region {
|
mask: Region {
|
||||||
x: BorderConfig.thickness
|
x: BorderConfig.thickness
|
||||||
y: BorderConfig.thickness
|
y: BorderConfig.thickness
|
||||||
width: scope.modelData.width - BorderConfig.thickness * 2
|
width: win.width - BorderConfig.thickness * 2
|
||||||
height: scope.modelData.height - BorderConfig.thickness * 2
|
height: win.height - BorderConfig.thickness * 2
|
||||||
intersection: Intersection.Xor
|
intersection: Intersection.Xor
|
||||||
|
|
||||||
regions: regions.instances
|
regions: regions.instances
|
||||||
|
|
|
||||||
|
|
@ -36,10 +36,12 @@ MouseArea {
|
||||||
target: Hyprland
|
target: Hyprland
|
||||||
|
|
||||||
function onCursorPosChanged(): void {
|
function onCursorPosChanged(): void {
|
||||||
const {
|
let {
|
||||||
x,
|
x,
|
||||||
y
|
y
|
||||||
} = Hyprland.cursorPos;
|
} = Hyprland.cursorPos;
|
||||||
|
x -= QsWindow.window.margins.left;
|
||||||
|
y -= QsWindow.window.margins.top;
|
||||||
|
|
||||||
// Show osd on hover
|
// Show osd on hover
|
||||||
const showOsd = root.inRightPanel(panels.osd, x, y);
|
const showOsd = root.inRightPanel(panels.osd, x, y);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue