summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2026-03-12 21:28:36 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2026-03-12 21:28:36 +1100
commit96f54e7b70297528dc2781385b2b955cfde3d544 (patch)
tree78e4f740b2faf3a287ebdc917f2fbf7e2858b790 /modules
parentdashboard: dynamic dashboard tabs + fix performance settings updating (#1253) (diff)
downloadcaelestia-shell-96f54e7b70297528dc2781385b2b955cfde3d544.tar.gz
caelestia-shell-96f54e7b70297528dc2781385b2b955cfde3d544.tar.bz2
caelestia-shell-96f54e7b70297528dc2781385b2b955cfde3d544.zip
picker: use hyprctl proc to get cursor on init
Diffstat (limited to 'modules')
-rw-r--r--modules/areapicker/Picker.qml12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/areapicker/Picker.qml b/modules/areapicker/Picker.qml
index 08f46df..f4f4a36 100644
--- a/modules/areapicker/Picker.qml
+++ b/modules/areapicker/Picker.qml
@@ -5,6 +5,7 @@ import qs.services
import qs.config
import Caelestia
import Quickshell
+import Quickshell.Io
import Quickshell.Wayland
import QtQuick
import QtQuick.Effects
@@ -191,6 +192,17 @@ MouseArea {
}
}
+ Process {
+ running: true
+ command: ["hyprctl", "cursorpos", "-j"]
+ stdout: StdioCollector {
+ onStreamFinished: {
+ const pos = JSON.parse(text);
+ root.checkClientRects(pos.x - root.screen.x, pos.y - root.screen.y);
+ }
+ }
+ }
+
Loader {
id: screencopy