Dock: New "exclusive" settings to ensure no windows go below.
This commit is contained in:
parent
d80e9ba3d5
commit
df2a9a246d
2 changed files with 8 additions and 0 deletions
|
|
@ -33,6 +33,7 @@ Variants {
|
||||||
screen: modelData
|
screen: modelData
|
||||||
|
|
||||||
WlrLayershell.namespace: "noctalia-dock"
|
WlrLayershell.namespace: "noctalia-dock"
|
||||||
|
WlrLayershell.exclusionMode: Settings.data.dock.exclusive ? ExclusionMode.Auto : ExclusionMode.Ignore
|
||||||
|
|
||||||
readonly property bool autoHide: Settings.data.dock.autoHide
|
readonly property bool autoHide: Settings.data.dock.autoHide
|
||||||
readonly property int hideDelay: 500
|
readonly property int hideDelay: 500
|
||||||
|
|
|
||||||
|
|
@ -154,6 +154,13 @@ ColumnLayout {
|
||||||
onToggled: checked => Settings.data.dock.autoHide = checked
|
onToggled: checked => Settings.data.dock.autoHide = checked
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NToggle {
|
||||||
|
label: "Exclusive Dock"
|
||||||
|
description: "Ensure windows don't open underneath the Dock."
|
||||||
|
checked: Settings.data.dock.exclusive
|
||||||
|
onToggled: checked => Settings.data.dock.exclusive = checked
|
||||||
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
spacing: Style.marginXXS * scaling
|
spacing: Style.marginXXS * scaling
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue