summaryrefslogtreecommitdiff
path: root/modules/drawers/Interactions.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-08 13:45:08 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-08 13:45:08 +1000
commit23482ac1f793c1592a5ff6ab883f04069c8c0b66 (patch)
tree964b61ff67573529b4fb7bfca7933511223ad45d /modules/drawers/Interactions.qml
parentrefactor: move drawers into separate module (diff)
downloadcaelestia-shell-23482ac1f793c1592a5ff6ab883f04069c8c0b66.tar.gz
caelestia-shell-23482ac1f793c1592a5ff6ab883f04069c8c0b66.tar.bz2
caelestia-shell-23482ac1f793c1592a5ff6ab883f04069c8c0b66.zip
refactor: split drawers
Split off interactions into new file Also fix hover osd
Diffstat (limited to 'modules/drawers/Interactions.qml')
-rw-r--r--modules/drawers/Interactions.qml11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/drawers/Interactions.qml b/modules/drawers/Interactions.qml
new file mode 100644
index 0000000..5006a96
--- /dev/null
+++ b/modules/drawers/Interactions.qml
@@ -0,0 +1,11 @@
+import "root:/services"
+import Quickshell
+import QtQuick
+
+MouseArea {
+ required property ShellScreen screen
+
+ anchors.fill: parent
+ hoverEnabled: true
+ onPositionChanged: event => Drawers.setPosForScreen(screen, event.x, event.y)
+}