32 lines
703 B
QML
32 lines
703 B
QML
import QtQuick
|
|
import Quickshell
|
|
import Quickshell.Wayland
|
|
import "../services" as S
|
|
|
|
// Invisible 2px-wide PanelWindow at the right screen edge.
|
|
// When cursor enters, opens the dock in overlay mode.
|
|
PanelWindow {
|
|
id: root
|
|
|
|
required property ShellScreen screen
|
|
|
|
visible: !S.DockState.open
|
|
color: "transparent"
|
|
|
|
WlrLayershell.layer: WlrLayer.Overlay
|
|
WlrLayershell.exclusiveZone: 0
|
|
WlrLayershell.namespace: "nova-dock-trigger"
|
|
|
|
anchors.top: true
|
|
anchors.right: true
|
|
anchors.bottom: true
|
|
|
|
implicitWidth: 2
|
|
|
|
HoverHandler {
|
|
onHoveredChanged: {
|
|
if (hovered && !S.DockState.open)
|
|
S.DockState.openOverlay();
|
|
}
|
|
}
|
|
}
|