mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-01 19:18:28 -04:00
602697ef51
Previously the bar-in-frame was rendered on the overlay layer always. Now they are rendered inside of the frames top-layer surface, which lets the compositor handle layer-shell layering natively.
31 lines
930 B
QML
31 lines
930 B
QML
pragma ComponentBehavior: Bound
|
|
|
|
import QtQuick
|
|
import qs.Common
|
|
import qs.Modules.Dock
|
|
import qs.Services
|
|
|
|
// Renders the dock inside the frame surface in connected mode: a single DockBody
|
|
// positioned by SettingsData.dockPosition. It fills the frame and positions its own
|
|
// content via its internal anchors/geometry using hostWindow.
|
|
Item {
|
|
id: host
|
|
|
|
required property var frameWindow
|
|
required property var targetScreen
|
|
|
|
readonly property string screenName: targetScreen ? targetScreen.name : ""
|
|
|
|
// Exposed so FrameWindow can add the dock's hover strip to its input region.
|
|
readonly property alias dockMaskItem: dockBody.inputMaskItem
|
|
|
|
DockBody {
|
|
id: dockBody
|
|
anchors.fill: parent
|
|
hostWindow: host.frameWindow
|
|
modelData: host.targetScreen
|
|
contextMenu: BarWidgetService.dockContextMenu
|
|
trashContextMenu: BarWidgetService.dockTrashContextMenu
|
|
}
|
|
}
|