diff --git a/modules/areapicker/Picker.qml b/modules/areapicker/Picker.qml index 2f0bafc2..4c574add 100644 --- a/modules/areapicker/Picker.qml +++ b/modules/areapicker/Picker.qml @@ -47,10 +47,12 @@ MouseArea { function checkClientRects(x: real, y: real): void { for (const client of clients) { - const { + let { at: [cx, cy], size: [cw, ch] } = client.lastIpcObject; + cx -= screen.x; + cy -= screen.y; if (cx <= x && cy <= y && cx + cw >= x && cy + ch >= y) { onClient = true; sx = cx;