From dbcde131aa08b51dbb16c82594a7191e5d0e0be2 Mon Sep 17 00:00:00 2001 From: inorishio Date: Mon, 27 Oct 2025 00:14:05 +0100 Subject: [PATCH] MOVEMENT --- Modules/Mouse.qml | 6 +++--- Modules/PetAcheron.qml | 2 -- shell.qml | 20 +++++++++++++++++--- 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/Modules/Mouse.qml b/Modules/Mouse.qml index 4caa4dc..352fb10 100644 --- a/Modules/Mouse.qml +++ b/Modules/Mouse.qml @@ -3,10 +3,10 @@ import QtQuick MouseArea { anchors.fill: parent acceptedButtons: Qt.LeftButton - drag.target: dragEvernight + drag.target: parent drag.axis: Drag.XAndYAxis drag.minimumX: 0 - drag.maximumX: Screen.width - evernight.width + drag.maximumX: Screen.width - parent.width drag.minimumY: 0 - drag.maximumY: Screen.height - evernight.height + drag.maximumY: Screen.height - parent.height } diff --git a/Modules/PetAcheron.qml b/Modules/PetAcheron.qml index ee3287d..cb0d73d 100644 --- a/Modules/PetAcheron.qml +++ b/Modules/PetAcheron.qml @@ -1,6 +1,4 @@ import QtQuick -import Quickshell.Io -import Quickshell.Wayland Rectangle { width: 227 diff --git a/shell.qml b/shell.qml index b5a4088..01532d3 100644 --- a/shell.qml +++ b/shell.qml @@ -24,11 +24,23 @@ PanelWindow { } mask: Region { - item: evernight,acheron + Region { + item: dragEvernight + } + + Region { + item: dragAcheron + } } property var yesMask: Region { + Region { item: dragEvernight + } + + Region { + item: dragAcheron + } } property var noMask: Region { @@ -63,7 +75,8 @@ PanelWindow { color: mainWindow.color } - Mouse {} + Mouse { + } } Item { @@ -77,6 +90,7 @@ PanelWindow { color: mainWindow.color } - Mouse {} + Mouse { + } } }