summaryrefslogtreecommitdiff
path: root/modules/areapicker
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-04 22:51:51 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-04 22:51:51 +1000
commit5405400bd1b70acfcb2d6e79c019422f4e5587e5 (patch)
tree8a170e63a9f4feac52243b8ba4e04c6d44abebf4 /modules/areapicker
parentinternal: refactor widgets folder (diff)
downloadcaelestia-shell-5405400bd1b70acfcb2d6e79c019422f4e5587e5.tar.gz
caelestia-shell-5405400bd1b70acfcb2d6e79c019422f4e5587e5.tar.bz2
caelestia-shell-5405400bd1b70acfcb2d6e79c019422f4e5587e5.zip
picker: fix client highlighting
Diffstat (limited to 'modules/areapicker')
-rw-r--r--modules/areapicker/Picker.qml4
1 files changed, 3 insertions, 1 deletions
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;