clean up
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import QtQuick
|
||||
|
||||
MouseArea {
|
||||
id: mouseArea
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
drag.target: null // Not using built-in drag behavior
|
||||
|
||||
onPositionChanged: {
|
||||
if (mouse.buttons & Qt.LeftButton) {
|
||||
petMarch.mleft = mouse.x
|
||||
petMarch.mbottom = mouse.y
|
||||
console.log("mleft:", petMarch.mleft, "mbottom:", petMarch.mbottom)
|
||||
}
|
||||
}
|
||||
}
|
||||
+15
-15
@@ -1,15 +1,15 @@
|
||||
import QtQuick
|
||||
import Quickshell.Wayland
|
||||
|
||||
QtObject {
|
||||
// The main toggle function
|
||||
function toggleLayer() {
|
||||
if (!onTop) {
|
||||
mainWindow.WlrLayershell.layer = WlrLayer.Top
|
||||
onTop = true
|
||||
} else {
|
||||
mainWindow.WlrLayershell.layer = WlrLayer.Bottom
|
||||
onTop = false
|
||||
}
|
||||
}
|
||||
}
|
||||
import QtQuick
|
||||
import Quickshell.Wayland
|
||||
|
||||
QtObject {
|
||||
// The main toggle function
|
||||
function toggleLayer() {
|
||||
if (!onTop) {
|
||||
mainWindow.WlrLayershell.layer = WlrLayer.Top
|
||||
onTop = true
|
||||
} else {
|
||||
mainWindow.WlrLayershell.layer = WlrLayer.Bottom
|
||||
onTop = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user