16 lines
356 B
QML
16 lines
356 B
QML
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
|
|
}
|
|
}
|
|
}
|