From 5405400bd1b70acfcb2d6e79c019422f4e5587e5 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Mon, 4 Aug 2025 22:51:51 +1000 Subject: picker: fix client highlighting --- modules/areapicker/Picker.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/areapicker/Picker.qml b/modules/areapicker/Picker.qml index 2f0bafc..4c574ad 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; -- cgit v1.2.3-freya