32 lines
685 B
QML
32 lines
685 B
QML
import QtQuick
|
|
import Quickshell
|
|
import Quickshell.Wayland
|
|
import "." as D
|
|
|
|
// Invisible 2px-wide PanelWindow at the right screen edge.
|
|
// When cursor enters, opens the dock in overlay mode.
|
|
PanelWindow {
|
|
id: root
|
|
|
|
required property var screen
|
|
|
|
visible: !D.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 && !D.DockState.open)
|
|
D.DockState.openOverlay();
|
|
}
|
|
}
|
|
}
|